View Single Post
Old 18 April 2018, 21:41   #1
peceha
Registered User

peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 42
Posts: 113
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
The important thing here is "cnt" - when it is set to 500 I can run this code as many times as I want. When I set cnt=1000 then I can run this only once - the second time I run the code my Amiga freezes, cannot move the mouse, and no guru shows up.
I'm talking about Blitz 2.1 (max shapes number in compiler setting is set to 2000).

Thanks
peceha is online now  
 
Page generated in 0.04045 seconds with 11 queries