|
-
Jun 17th, 2001, 03:33 AM
#1
Thread Starter
Lively Member
Stack Overflow
Does anyone know what a stack overflow error is on a PC.My small database and calculation program appears to be causing pc's to blue screen with a stack overflow error,even if the program is not open.
Thankyou for any and all help. It is greatly appreciated
-
Jun 17th, 2001, 07:45 AM
#2
Monday Morning Lunatic
Stack overflow is where you try and place more items on a stack than there is allocated memory for. It's usually not a problem, unless you have a lot of recursive functions.
Have you tried running it through the debugger to watch the call trace stack?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 20th, 2001, 02:49 AM
#3
Thread Starter
Lively Member
Parksie
couldn't work out "call trace stack" ???
Thankyou for any and all help. It is greatly appreciated
-
Jun 20th, 2001, 03:21 AM
#4
Monday Morning Lunatic
It's explained in the documentation 
I don't have VB installed anymore, but I'm sure there's a dockable window you can open that shows all the called functions. For example, in the following code:
VB Code:
Sub X()
Dim x as long
x = another(5)
End Sub
Function another(byval thething as long) as long
another = thething * further(thething)
end function
function further(byval evenmore as long) as long
further = evenmore + 1
end function
If it dies in further, then the call trace stack would show something like:
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|