My Project has 90 forms (MDI-child), 50 standard modules
Here is my system and software info
Win 2000 SP4
Ram - 1 GB
Free Space in Hard Drive - 1.8 GB
Total Paging file size 1024mb (initial) and 1531(Maximum) [bumped it from 768 to 1024]
Visual Studio 6 SP3
VBproject size is nearly 30 MB
Oralce as backend and I use OLE objects to interact with the database.
We use some other third party controls in the VB project (True DBGrid, Sheridan Combobox [not much]) .
I kept all the public constants under the TypeLibraries. I was able to compile the project and can make an EXe successfully until I tried to add the below:
I added couple of new forms (both forms has True DBGrid and command buttons (control Array)), one standard module and a class module (90 lines) which has code related to MSXML4.
I was able to add this to the project, but I am getting "Out of Memory" error right away when I run the project (Run/Start or Run/Start With Full Compile). Well, lot of posts talk about big arrays could be the culprit. But I did not have any big arrays used in my project. I commented all the code in the new forms (two) and module and started removing the comments for little chunk of code and did full compile. Like that I was able to uncomment the code for one form but not for the other. I have a 1mb huge bas file (nearly 26,500 lines). I will start breaking it into multiple modules. I have some big functions which already exists (may be from an year) and if I copy that in a notepad, it comes around 130 kB. Does this exceeding 64kb limit. If so then why it didn't complained earlier. Is there any tool that can tell us about the memory allocation statistics for a VB project [I mean the tool specifying the location where it exceeds the limitation etc..],?
I really have to add the new code. Is there any thing I can do without doing major changes because we really have no time [atleast right now] for the major changes?
I tried this in couple of machines which has more harddrive Free space (60 GB), unfortunately its the same result. Is this relates to any stack space issue? Does any one has ideas?