
-----------------------------------
Mephi
Fri May 23, 2003 10:19 pm

Picture load
-----------------------------------
often my program just stops and it sez "Illegal picture ID number '0'. (Probable cause: picture was not successfully created.)."  Does any1 kno why this happens? the pictures there, it works fine fur a while, then just randomaly crashes

-----------------------------------
Kingnoz
Fri May 23, 2003 10:30 pm


-----------------------------------
try putting you picture in the same folder as your program.....works for me.....also the only files u can use are .bmp, .jpeg, .pcx(not sure about this one....never used it)

-----------------------------------
Mephi
Fri May 23, 2003 10:34 pm

yea
-----------------------------------
its all in the same folder already, all my pics are .bmp....but it still keeps screwin up! mebbe its my comp or sumthin....iunno....can ppl test it out? see if it crashes for u....just walk around for a while, after about 15 seconds or sumthin it crashes fur me

-----------------------------------
Dan
Fri May 23, 2003 10:49 pm


-----------------------------------
i have not looked at code yet, but turing can only load so may pics. if you are loading new one each time a loop gose or sotming it will crash. i will look at code soon got a lot to do  :?

-----------------------------------
Mephi
Fri May 23, 2003 10:53 pm


-----------------------------------
o really? does Pic.Free help?

-----------------------------------
Tony
Fri May 23, 2003 11:41 pm


-----------------------------------
Pic.Free will crear the memory... You can also recycle variables instead of declearing a new one each time...

or if you load a lot of pictures during runtime, you could add something like

if picID 