
09-07-2000, 05:12 PM
|
 |
Code Meister
Retired Moderator * Guru *
|
|
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
|
|
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
|