Results 1 to 4 of 4

Thread: Stack Overflow

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Sunny Queensland
    Posts
    91

    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

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Sunny Queensland
    Posts
    91

    Parksie

    couldn't work out "call trace stack" ???
    Thankyou for any and all help. It is greatly appreciated

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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:
    1. Sub X()
    2.     Dim x as long
    3.     x = another(5)
    4. End Sub
    5. Function another(byval thething as long) as long
    6.     another = thething * further(thething)
    7. end function
    8. function further(byval evenmore as long) as long
    9.     further = evenmore + 1
    10. end function
    If it dies in further, then the call trace stack would show something like:
    Code:
    further
    another
    X
    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
  •  



Click Here to Expand Forum to Full Width