Page 1 of 1

Problem with LoadSprite()

Posted: Tue Jan 18, 2005 9:54 pm
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?