CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    Intimidated Newbie - Stack space problem



    Reading the Q&As on this group, I am intimidated by the skills of you people, so I'm asking humbly.


    I'm working on a program with 7 or 8 arrays(23) so far. For a raw amateur, I'm pleased with it's operation BUT ... In design time, under certain circumstances, it runs out of stack space, but when running as an .exe file, the same series of events produces no error.


    My question is, do I break the program into smaller units? ... Or is there less of a stack space problem when running as an application? ... Or is there a way of creating more stack space.


    VB3, running in windows98, 128mb ram


    (I'm now learning my new VB6, and will be updating the program on it)

  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Intimidated Newbie - Stack space problem



    Hi


    There is no way of increasing stack space using VB that I'm aware of (I'd be very surprised if there was). Out of stack space errors usually occur when a subroutine / function is called recursively (usually by accident). One of the main culprits for this is Form_Paint or Form_Resize (or ControlWhatever_Paint or ControlWhatever_Resize)


    Maybe if you post the code here we can have a look and give you a few pointers.


    Regards


    Chris Eastwood


    CodeGuru - the website for developers

    http://www.codeguru.com/vb



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