Net use - out of memory (AREV Specific)
At 10 JUN 1998 12:54:47PM [email protected] wrote:
When printing from Arev, we get a message: "The program is to big for the memory", or something like that (Swedish vesion of Windows).
Any idea how to make a NET USE command, and release some memory?
Regards
/Jens
At 10 JUN 1998 02:58PM Jim Horvath wrote:
My guess is that you are trying to invoke NET USE from a PC PERFORM line within your AREV application. This calls a DOS shell without unloading AREV from memory. If the amount of 640K DOS memory left is not enough to load NET.EXE (or CAPTURE.EXE under Netware), you will get the memory error message.
One solution is to use SUSPEND instead of PC PERFORM. This unloads most of AREV from memory before going to DOS making more room available to run the NET USE command (or whatever), but it is slower. (I hope you have the books, I forget the details of the syntax).
I personally don't like to use PC PERFORM or SUSPEND unless absolutely necessary, and even then, not from machines running Windows. Why not make all of your printer network connections before you even start AREV? That is, from a DOS command line (or from within a .BAT file):
NET USE LPT1: \\MyServer\NetPrinterAREV MyAppThis way there is no need to do any DOS calls from within AREV.
If none of this makes sense, or you can't modify the source code for your application, your only options are to try to make more memory available in the DOS window, or try to find a version of NET.EXE that is small enough (and works). It may be that neither of these is possible.
Jim ([email protected])