Author |
Message |
Vertico
|
Posted: Thu Apr 28, 2005 6:06 pm Post subject: Illegal picture ID Problem |
|
|
Not completly sure why this is happening. It will run right for a bit then it will crash with this error
code: |
Illegal picture ID number '0'. (Probable cause: picture was not successfully created).
|
Someone figure this out for me plz.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Test.zip |
Filesize: |
4.26 KB |
Downloaded: |
109 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Token
![](http://server2.uploadit.org/files/token89-avatar1.jpg)
|
Posted: Thu Apr 28, 2005 6:25 pm Post subject: (No subject) |
|
|
here, give this a go. what you had to do is free the picID before you re-assigned it or else it would build up on that one variable. so just put
before
code: |
picID := Pic.FileNew ("verticomanStand.bmp")
|
but this dosent make sence for the error you were getting, make sure all the files are in the same folder. so try that and double check the location of ur files
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
test.zip |
Filesize: |
4.27 KB |
Downloaded: |
118 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
c0bra54
![](http://www.planetnintendo.com/ff1/unnedizzy.gif)
|
Posted: Thu Apr 28, 2005 6:52 pm Post subject: (No subject) |
|
|
no it does make sense.. what ends up happening is when you go
Pic.FileNew ("")
and open a different pocture in variable more then 1000 times it crashes, probly something to do with tuirng's memory componenets.. the easiest way to fix this if you are making a game or somethin, is to have a Pic.Free pocedure, that will free all the pictures in your game, and run it everytime your main loop executes.. i first ran into this problem with animation..
yeh, thats all
|
|
|
|
|
![](images/spacer.gif) |
Token
![](http://server2.uploadit.org/files/token89-avatar1.jpg)
|
Posted: Thu Apr 28, 2005 8:32 pm Post subject: (No subject) |
|
|
yah, the code i posted fixes that problem, i never ran into the
code: |
Illegal picture ID number '0'. (Probable cause: picture was not successfully created).
|
problem of which he speaks << words reversed to seem classy , ne ways yah that error is usually when it cant find the file.
|
|
|
|
|
![](images/spacer.gif) |
c0bra54
![](http://www.planetnintendo.com/ff1/unnedizzy.gif)
|
Posted: Thu Apr 28, 2005 8:36 pm Post subject: (No subject) |
|
|
omg lol your right there error i am thinking of is like..
error illegal piture id (int execceds 1000)
or sumthing
sry lol
|
|
|
|
|
![](images/spacer.gif) |
Vertico
|
Posted: Fri Apr 29, 2005 9:29 am Post subject: (No subject) |
|
|
ya okay it works now when I free it. Thz
|
|
|
|
|
![](images/spacer.gif) |
|