Overflow behavior

Freak
26 Mar 2007, 14:00
What exactly is supposed to happen when an overflow is stopped in the newest version? (My tests revealed Quest just halting, giving no apparent cause.)

Alex
26 Mar 2007, 14:51
What is supposed to happen with a stack overflow caused by:

command <something> exec <something>

is that Quest catches the run-time "out of stack space" error (VB error number 28), writes an error message to the ASL log file, and stops processing the script command.

However it now seems this doesn't actually happen in the final Quest.exe - all that happens is it stops running and Quest vanishes.

I don't know why this works in the VB IDE and not in the resulting EXE file, although it wouldn't be the first time I've found an inexplicable difference in behaviour...

Probably a better design for the next version would be to keep a counter of nested calls to the "exec" command and terminate manually before hitting the run-time error - this would seem to be a safer way of doing things.

Freak
26 Mar 2007, 15:21
I tried writing Geas so that it wouldn't use the system stack, but instead use a manual stack; this quickly became unwieldy because I had to track every single point where flow could be interrupted.

And what's with the method you're using to block bots? Virtually every time I try to post, it accuses me of being a bot.

Alex
26 Mar 2007, 16:20
To block bots, the reply form contains a hidden field which is then checked when the reply is submitted. This stops bots from hammering the forums with spam messages - although this is hopefully less of a problem now I've taken other steps to block automated registrations.

It shouldn't cause a problem with most browsers though. What browser are you using?

Is anybody else having this problem?

Freak
26 Mar 2007, 16:24
I'm using firefox/linux. If I try to submit directly, I get an error; I usually have to preview then submit for it to work.

paul_one
26 Mar 2007, 17:39
I get it happen when I take ages to post (say 15 minutes or so)..

Usually on the big posts which I submit with examples/opinions (as my opinions come with large explanations), or if I'm busy.

But normally I'm fine - also using linux/FF2.0.0.3.

007bond
27 Mar 2007, 06:41
I never had that problem when I was using Firefox 2.0 on linux.
But that was 4.5 months ago.

Alex, what version of Visual Basic do you use to write Quest?

Alex
27 Mar 2007, 09:30
Quest is written in VB5.

Elexxorine
27 Mar 2007, 10:24
I get the bot thing too when I spend ages posting though... But then I go back (as it says) and my post is gone... :cry: And the long posts are the important ones... It sucks.

Alex
27 Mar 2007, 10:36
OK, thanks for letting me know. I'll turn this off.

007bond
28 Mar 2007, 05:14
VB5? Jeez that's old.
I guess it wouldn't be much different to VB6 though (what I use), from what I've seen on websites like planet source code.com.

Cryophile
01 Apr 2007, 22:59
Thanks. I had to stop posting there for a while. It really didn't like my mobile browser.