Pic. allocated problem.
Author |
Message |
CrazyCanuck
|
Posted: Fri Jan 07, 2005 11:00 pm Post subject: Pic. allocated problem. |
|
|
I am making a program for my computer tech class, and the program is pretty much finished. The problem is, after the program runs for a bit it will crash with the error message "Pic. never allocated".
I'm using PicIDs and Pic Draw after Pic.Screenload wasn't working. I also have View.Updates, as well.[your site was great for this ]
I would post my program but it is kinda long, about 1100 lines, and requires the files to run.....It's a space ship shooter.
Any help would be apprieciated.
As well, would adding Pic.Free a the end of my program free up the memory? Currently I can no longer indent due to being out of memory...
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Cervantes
|
Posted: Sat Jan 08, 2005 10:11 am Post subject: (No subject) |
|
|
Yes, definately do a Pic.Free.
I don't think I can help you much without seeing the code. I can't remember ever seeing that specific error message. Attach the code as a zip file with the necessary files, and I'll try to help you further
|
|
|
|
|
|
CrazyCanuck
|
Posted: Sat Jan 08, 2005 11:51 am Post subject: (No subject) |
|
|
How do you make a zip file?
[this is my first real program ]
I already have a working version without this problem using entirely View.Updates without 'fill pics' [little rectangles to draw over previous spots], but that version runs extremely slow on my schools computers. So this is an edited version to run faster, with the fill boxes and a few View.Updates.
Arg did that make sense?
I don't think it really matters too grealty, as 90% of the class is doing an easy trivia game . The teacher is already impressed with my program.
The problem seems to occur randomly in the program when attemptignt o laod a pic.
|
|
|
|
|
|
Delos
|
Posted: Sat Jan 08, 2005 12:08 pm Post subject: (No subject) |
|
|
1)
Zip files are made using compression software such as WinZip. If you are running XP then you simply need to right click on the required files, and then click on Send To, followed by Compressed Folder.
You may dl a basic version of WinZip from Download.com. Or if you're feeling particularly advenerous, use WinAce.
2)
So, you're using little boxes...in that case, why don't you simply look into View.UpdateArea()? You'll need to be running OOT 4.0.5 for that, but I'm pretty sure you're there already.
|
|
|
|
|
|
CrazyCanuck
|
|
|
|
|
Cervantes
|
Posted: Sat Jan 08, 2005 6:27 pm Post subject: (No subject) |
|
|
Ugh, processes
Hmm.. You have a major problem with shooting. Whenever you shoot, you can't move.
Anyways, I'm not getting this "Pic. never allocated" error. Mind you, I didn't play it for that long before the game stops responding.
|
|
|
|
|
|
CrazyCanuck
|
Posted: Sat Jan 08, 2005 6:52 pm Post subject: (No subject) |
|
|
Cervantes wrote: Ugh, processes
Hmm.. You have a major problem with shooting. Whenever you shoot, you can't move.
Anyways, I'm not getting this "Pic. never allocated" error. Mind you, I didn't play it for that long before the game stops responding.
when did the game stop responding?
And you are able to move when you shoot, as far as it runs on my computer. Do you mean when you actually shoot the laser [then yes], or when the laser starts to move?
And sadly I never found this site before to find out how processes are bad before using them.....
Description: |
possibly this verison better?
(may run slow) |
|
Download |
Filename: |
Final Project Aplha.zip |
Filesize: |
284.74 KB |
Downloaded: |
166 Time(s) |
|
|
|
|
|
|
Cervantes
|
Posted: Sat Jan 08, 2005 7:01 pm Post subject: (No subject) |
|
|
The game stopped responding, maybe, 15 seconds in to it, or so.
Laser starts to move? Maybe it's just my computer, but I'm not seeing this. And, actually, I suppose I said it wrong. You probably can move when you shoot the laser, but things just go insanely slowly (it feels like it's skipping a bunch of frams). So, until the laser goes away, I can't really control the ship.
EDIT: Nope, that program (alpha) seems to be the same, though I completed the first wave. I think that might just be because I'm getting more used to the way it functions on my computer.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
CrazyCanuck
|
Posted: Sat Jan 08, 2005 9:46 pm Post subject: (No subject) |
|
|
I'm not sure what is causing that problem on your computer. The program allows the laser to move and shoot at the same time when I run it, on my personal computer and the cschools computer.
Well it doens't really matter, I guess. I won't be able to find out what is causing the problem by the time its due [tuesday], so I guess I'll leave it as it is. At least its better now than an normal trivia game.
Thanks for your input, though.
|
|
|
|
|
|
|
|