Problem with LoadSprite()

Everything else that doesn't fall into one of the other PB categories.
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Problem with LoadSprite()

Post by Dräc »

Does anyone have a problem by using the following code with the given image?
Personally the program stopped at line 12 with an error message.
It’s possible that was linked to my notebook configuration: 500Mhz, 4 MB VideoRam under Win98SE.
I am particularly interested by having a feedback from someone who have a computer configuration close of mine…

The image (bmp 1000x120x8 bits):
http://drac.site.chez.tiscali.fr/PB_tes ... /blank.rar

The code:

Code: Select all

InitSprite() 
OpenWindow(0,10,10, 100, 100, 0, "test") 
OpenWindowedScreen(WindowID(),10,10, 100, 100, 0,0,0) 
FileName$="blank.bmp" 

LoadSprite( 1, FileName$, #PB_Sprite_Memory ) 
Debug 1  
LoadSprite( 2, FileName$, #PB_Sprite_Memory ) 
Debug 2 
LoadSprite( 3, FileName$, #PB_Sprite_Memory ) 
Debug 3 
LoadSprite( 4, FileName$, #PB_Sprite_Memory ) 
Debug 4 
In fact, the same code works fine if image properties change from 1000x120x8 bits to 1001x120x8 bits.
Strange, isn’t it?