CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Stack error ???

  1. #1
    Join Date
    Jan 2000
    Posts
    44

    Stack error ???

    Hello !
    I try to open form from anither form and i get this error :
    "Out of stack space"
    I check all my program and didn't find any error.
    Is any buddy know what cause the error?
    Thanks.




  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Stack error ???

    "Out of stack space" typically means there is a un-warrented recursion. If you are run the program for a long time and get this then it means a memory leak
    Since your is not that case, (if it comes immediately) then there is an un-expected recusion, a function calling itself or un ecpectedly getting called.
    Also a set of wrongly placed DoEvents can cause this. It could also happen when you set the property of a control in the event handler of the same control, in which case vb will call the function again causing some unexpected recusion. But usually this lasts for only 2 rounds. But you can check that also.

    RK

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

Featured