Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Running out of resources!


Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2000, 05:12 PM
BillSoo's Avatar
BillSoo BillSoo is offline
Code Meister

Retired Moderator
* Guru *
 
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
Default Running out of resources!


I'm working on a program that communicates with a cash register (it's a POS system). Due to the fact that the registers are pretty old and have proprietary commands, I have to communicate by passing commands to a DOS based program. What I do is make a text file of commands I want done, then shell the DOS program with the filename in the command string. The DOS program then does the job and outputs data in DBF files (I said it was old!).

The problem is that on some systems (NOT mine of course), the program crashes with a resource error. Since it leaves the DOS program partially loaded, it requires a reboot to clear the memory.

So my question is: Does anybody know of any way to monitor resources? I'd like to find out what is causing this error.

Also, do you have any good links to a site with info on reducing the size of your program? If I can't overcome this communication problem, I may have to shrink my program to free up more resources.



"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Reply With Quote
  #2  
Old 09-07-2000, 07:27 PM
cbrewer cbrewer is offline
Junior Contributor
 
Join Date: Aug 2000
Location: Florida
Posts: 163
Default Re: Running out of resources!

The Microsoft Visual Basic 6.0 Programmers Guide has a section that gives specifics on reducing the size and resources for your program. You may find some help there. Biggest thing I found to keep the resource use low is to ensure you are unloading items that are not in use. Remember, anytime you make a reference to an object (Set myVariable = anyControl), it is loaded and using resources.


Hope that helps
Chuck
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->