Author |
Message |
metachief
|
Posted: Mon Feb 02, 2009 9:17 pm Post subject: Error: Picture was never allocated....? |
|
|
I can only ask for help those poeple who have been in such random situations such as this one I am in. My problem's solution is either switching from Turing to some other language or fixing this random error that happens for no distinct reason... In my program I have a poicture rotated 360 degrees so that the pic's front can face the mouse. Anyways... after displaying the picture for about 2 min, the program stops running telling me that a picture that was just being displayed is not found (or "allocated")! The directory of the picture is not changed etc. So what can be wrong? If youre not sure what I mean then I can explain better. Could it have something to do with me avoiding to use Free.Pic? I'm stuck with this random error for the first time and it might be a silly mistake..... |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Amit
|
Posted: Mon Feb 02, 2009 9:34 pm Post subject: Re: Error: Picture was never allocated....? |
|
|
Why do you avoid using Pic.Free? I was under the assumption that if you didn't free the pics you would eventually run out of memory. Perhaps that's your problem? |
|
|
|
|
|
Laplace's Demon
|
Posted: Mon Feb 02, 2009 9:35 pm Post subject: Re: Error: Picture was never allocated....? |
|
|
I've never seen that particular error myself, but the first thing that jumps to mind is that you may be exceeding the maximum amount of pictures in Turing (around 1000) due to creating a new version of the same picture again and again in your program. Is the code to create the pictures nested inside your main execution loop in any way? |
|
|
|
|
|
metachief
|
Posted: Mon Feb 02, 2009 9:47 pm Post subject: RE:Error: Picture was never allocated....? |
|
|
So are you saying that by freeing the pictures I will not exceede the limit? Because that is what I was thinking... |
|
|
|
|
|
The_Bean
|
Posted: Tue Feb 03, 2009 7:09 am Post subject: Re: Error: Picture was never allocated....? |
|
|
Are you rotating the picture and saving it to an array ahead of time, or rotating as needed during the program? If you save it ahead of time then you will only have 360 pictures and there shouldn't be a problem. If you make them on the go and don't free them you will exceed the maximum picture amount unless you free them after you make them. |
|
|
|
|
|
|