WTF?!? stupid error out of the blue. help pls!
Posted: Tue Jul 26, 2005 9:42 am
for no apparent reason whatsoever, whenever I try to run my program I get this error
An unhandled exception of type 'System.StackOverflowException' occurred
...and it always points to where I declare my event handler. MyEventReceiver receiver;
Now, in an attempt to figure out wtf is going on, I eliminated my code section by section and found out that this code is causing the problem.
CHARACTER Random_Character()
{
CHARACTER rcharacter;
return(rcharacter);
} // End Random_Character
CHARACTER is a structure of a bunch of different variables, nothing fancy. I get the error if I call this in any way. I tried the simplest way I can think of:
CHARACTER lcharacter = Random_Character();
but I get the overflow error when I call it. Any idea what the problem could be? I've tried rebooting my computer and cleaning the solution etc. also, I made no changes to this code whatsoever before the problem came up.
help pls, I'm stumped
An unhandled exception of type 'System.StackOverflowException' occurred
...and it always points to where I declare my event handler. MyEventReceiver receiver;
Now, in an attempt to figure out wtf is going on, I eliminated my code section by section and found out that this code is causing the problem.
CHARACTER Random_Character()
{
CHARACTER rcharacter;
return(rcharacter);
} // End Random_Character
CHARACTER is a structure of a bunch of different variables, nothing fancy. I get the error if I call this in any way. I tried the simplest way I can think of:
CHARACTER lcharacter = Random_Character();
but I get the overflow error when I call it. Any idea what the problem could be? I've tried rebooting my computer and cleaning the solution etc. also, I made no changes to this code whatsoever before the problem came up.
help pls, I'm stumped