Egad...
Displaying 1-6 of 6 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Devon

Let me just toss this one out here...

Okay, I have a function that creates the data for my characters by malloc'ing some memory and reading numbers out of a file, storing them with bytes and words. The function itself works fine, my problem is that VERGE doesn't seem to like it. If I call the function from system.vc, it crashes, but not within the function itself, it crashes when it reaches the next ShowPage(). If I call it from a map event, it works fine, UNLESS the event has several other functions in it, or even just LoadImage()s, in which case it crashes at the next ShowPage() after the function. What is even wierder is that the ORDER of the functions/LoadImages seems to matter more than WHAT functions they are.

I can't find any releation between the functions and the crash, as the constructor function is entirely self-contained, so they CAN'T be screwing with any variables, and in any event, the EXACT SAME functions in the SAME order that cause a crash in system.vc do NOT cause it in a map event, but a DIFFERENT order and/or set of functions will cause the crash in an event.


I'm more than a little confused by this.

-Devon



--- Square's making money. We're making art.

Posted on 2001-03-13 11:57:26

tSB

If the error is 'suffix/prefix corruption on chunk x', then you're mangling memory that you shouldn't be. VERGE doesn't check for memory corruption every time you write/read a byte from memory (it would be way too slow), so, it gets hung up a little later on.

Other than that.... I dunno. VC's got lots of weird little quirks that nobody has ever quite figured out.



'Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence.' -Albert Einstein

Posted on 2001-03-13 23:47:30

Devon

It would seem to be 'other'... I've since managed to crash it with another combination of functions, none of which use pointers or bytes/words/quads. The only thing that all the guilty functions seem to have in common is they all use global arrays... This is becoming painfully similar to the bug that killed my last battle system.

I guess I'll just have to give up on the Nifty Loading Screen for now. :)

-Devon



--- Square's making money. We're making art.

Posted on 2001-03-14 10:39:35

Devon

I've got the bug in a state now where the code works only if there are a few Message()s in it. If they are commented out, or replaced with Log()s, it crashes.

Does that make any sense to you whatsoever?

-Devon



--- Square's making money. We're making art.

Posted on 2001-03-15 13:51:39

tSB

If you can pack what you've got into a testable state, you can email it to me at tsb@verge-rpg.com, and I'll see what I can do.

oh, are you going past the end of an array? That would probably result in a different (and more consistent) crash.

What's the error message?



'Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence.' -Albert Einstein

Posted on 2001-03-16 23:46:51

Devon

I don't think I'm going past the end of an array. The arrays in the constructor have 31 entries, and I only use the first six right now. Besides, each of the functions works fine by itself. It's only in certain combinations that they crash.

There isn't an error message. It's a page fault (I think) caused by verge.exe in verge.exe. Then I have to reboot. The log file doesn't dump the memory usage anymore, either.

Thanks though. I'll work on squeezing all the uneccisary stuff out of it and send it along. :)

-Devon



--- Square's making money. We're making art.

Posted on 2001-03-17 14:53:48


Displaying 1-6 of 6 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.