![]() |
![]() |
#1 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 48
Posts: 284
|
GetaShape freezes my Amiga
Hi,
could someone tell me what's wrong in here: Code:
#G =16 BitMap 0,640,512,2 LoadBitMap 0,"ram:gfx_hero.iff",0 cnt.w=1000 ; <<<<---- THIS ONE IS MAKING TROUBLE For y.b=0 To 8 For x.b=0 To 7 GetaShape cnt,x*#G,y*#G,#G,#G cnt+1 Next x Next y Free BitMap 0 Print "done" MouseWait I'm talking about Blitz 2.1 (max shapes number in compiler setting is set to 2000). Thanks |
![]() |
![]() |
#2 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,393
|
Certain Blitz objects cause crashes when the maximum object count is too high - the buffer size wraps around and trashes memory. I think you're hitting this bug, it's one of the things that was fixed in Amiblitz 3.
Do you really need more than 1000 shapes? I would suggest recycling shapes that are used for drawing maps etc. if that's what you're doing. Otherwise AmiBlitz 3 should work. |
![]() |
![]() |
#3 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 48
Posts: 284
|
Thanks Daedalus.
I will consider moving to AmiBlitz3. At the moment I have something like this: [ Show youtube player ] In that video the maze has a dimentions 20x16 so it makes 320 shapes but if I want a bigger maze (eg.40x32) then I need more than 1000 shapes. Hmmm... I will have to find a different way, maybe instead of "1 title" = "1 shape" I will do "all the same tiles" = "1 shape" and that will reduce the amount of shapes... Thanks a lot ! as always I have some new ideas after reading your answers , hehe ![]() |
![]() |
![]() |
#4 |
Puttymoon inhabitant
|
This looks very promissing, fingers crossed in it. Fits to my favourite genre.
|
![]() |
![]() |
#5 | ||
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,393
|
Oops, I thought I replied to this ages ago, but turns out I didn't...
Quote:
Quote:
![]() |
||
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wblit or Getashape - one of them makes me nervous | peceha | Coders. Blitz Basic | 20 | 30 March 2018 10:22 |
Amiga 500+ freezes after clicking on icons | Chris__ | support.Hardware | 2 | 21 April 2016 10:38 |
My amiga freezes because of select.gadget prefs??? | keropi | support.Apps | 5 | 15 December 2005 11:27 |
After using a theme, visualprefs freezes the amiga... | keropi | support.Apps | 4 | 02 December 2005 21:55 |
The Amiga freezes | Fackamato | support.Hardware | 15 | 15 February 2005 09:46 |
|
|