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.:confused:
Printable View
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.:confused:
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?
couldn't work out "call trace stack" ???
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:
If it dies in further, then the call trace stack would show something like: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
Code:further
another
X