Click to See Complete Forum and Search --> : Intimidated Newbie - Stack space problem


Bev McQuain
March 2nd, 1999, 08:49 PM
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)

Chris Eastwood
March 3rd, 1999, 03:16 AM
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