therkyn
Mar 8 2007, 04:57 PM
So, its my month to start fixing things. I've now fixed my recursion... which brings me to the other thing that typically happens.
AC Has Encountered an Error and needs to close....
It only ever seems to happen when I'm running Skunkworks. Is this what is meant when people talk about a memory leak? Would turning debug on help track down what's happening? What would I look for in the debug info to help direct my search? Unfortunately, when AC crashes, it doesnt update the PLIG code, so I dont even know I'm not running anymore. Is this possibly a result of poor variable management? I do purge my arrays pretty consistantly to make sure unnecessary stuff doesnt sit around and get old (or too big)...
There used to be software called Crash Helper which relaunched AC for one of the trade bot programs... does that still work?
Anyway, some advice would be fantastic.
Thanks,
-t
GKusnick
Mar 8 2007, 07:59 PM
It's probably not anything you're doing. Even if you keep a reference to every ACO you ever see and never let go of them, that would lead to bad performance in the SWConsole process (where your code runs) but would be very unlikely to crash the AC process (where Decal runs).
If you have an older graphics card with limited video RAM, then it's conceivable that doing a lot of ShowControls/RemoveControls could eventually consume that memory and cause a crash. Before that happened, though, you'd start to see landscape white-out on screen as textures fail to load.
Or it could be some internal bug in Decal, SkunkWorks, or some other plugin.
The best way to diagnose client crashes is with a stack trace, but that assumes you have a C++ debugger on your system and know how to attach it to a crashed process. Failing that, a copy of the crash report might shed some light.
therkyn
Mar 9 2007, 01:04 PM
Oh Greg, you make me laugh sometimes!! I'm all self taught from acscript (so I went the jscript route since it made sense to me). I took a Pascal class once and used to type in basic programs from a magazine to a TRS-80.
So alas, I dont have a debugger to attach (nor do I actually understand how to do it). I get the feeling that somethings will remain a mystery. As far as the card, its a GeForce 4 ti 4200, 128 MB, so not this generation, but still relatively respectible for this game. I dont normally have the video problems and I do all my commands via /sw, though I do send a fair amount of text to chat window 4.
Thanks as always, I'll place this one under not likely... though it does make me think that perhaps if I cleaned up my code it might work, because I've certainly had other programs that go on for 24 hours... Well, you've given me a starting point to go search the web and see if I can learn about debuggers and attaching them to the process. It may turn up the problem.
-t
P.S. Interesting, Error Signature - AppName - acclient.exe, ModName: decalnet.dll - I cant seem to get it to let me copy the error report to look through it better, but I'll go do some research.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.