Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insufficient Extended Memory

Status
Not open for further replies.

clip4ever

Programmer
Oct 11, 2002
43
CA
Running DOS batch processes on Window 2000 server and getting frequent error "BLX286 : 1312 : Insufficient Extended Memory to run program".
Windows 2000 Extended memory is set to auto. Programs are written/linked with Clipper 5.2e/Blinker with the LNK file as follows:

BLINKER INCREMENTAL OFF
BLINKER EXECUTABLE EXTENDED 2048
BLINKER EXECUTABLE CLIPPER //F:145
OUTPUT extract
SEARCH BLXCLP52
FILE extract.obj
FILE frontend.obj, frontlib.obj, bah_lib.obj,
bah_lib2.obj, bah_lib3.obj, gen_dsp.obj, wndw.obj, wndw_txt.obj,
data_ent.obj, prntscrn.obj, errorsys.obj, errorsy2.obj
SEARCH BLXMSC51
LIBRARY clipper,extend,dbfntx

Any idea ?
 
It's defined by [qoute]BLINKER EXECUTABLE EXTENDED 2048[/quote]

You'l need to set extended memory to at least 2 MB for the (Dos/Windows) shortcut that points to the program, but that may only be possible after creating a batch-file to start the app.

HTH
TonHu
 
One step further please...
How to set the Extended Memory to 2048 ?
We are running this program from a batch file. I s there a DOS command to add to the Batch file ?
 
What version of Clipper? In W2K there is a default autoexec.nt that runs when you start a DOS session at c:\winnt\system32\autoexec.nt where you can add commands.

Regards,

Mike
 
I'm running Clipper 5.2e and Blinker 7.
What command should I add ?
 
SET CLIPPER=E2048
This should set the expanded memory to 2MB.

Regards,

Mike
 
Additionally you can also increase the file handles available:
SET CLIPPER=E2048;F50

Regards,

Mike
 
Thank you gentlemen. I'll try it soon and update this thread.
 
At least to avoid indexing troubles with DBFNTX the SET CLIPPER=E2048 should be changed to SET CLIPPER=E0 !! Additionally a ;F200 would come in handy to allow to open more than 15 files (from Clipper) and assuming a Files=205 setting in CONFIG.SYS (or CONFIG.NT on NT based Windows versions)
This all giving a grand total of SET CLIPPER=E0;F200

The extended memory setting should be on the shortcut property page "Memory".

HTH
TonHu
 
My recollection is that the max for F is either 254 or 255.

Regards,

Mike
 
Yeah, but the actual limit is at least 5 less, for you have to open the DOS box, and that get 5 handles assigned by default: input, output, stderr, prn and aux. Aux is usually connected to the com port, and can be used for input & output. Back in old (real) DOS based Windows days, you could 'close' filenr 5, to force a printer to start printing immediately, and flush the spooler, but Win-NT likes (Win2K & WinXP) don't actually support that any longer.
So the real available handles to open files with would be 250, if Windos is smart enough to close the handle to the .exe.... :)

HTH
TonHu
 
Thank you. I haven't got the chance to try this among other suggestions, because the Network support did some change that we do not know what yet, and the problem did not show for the 3rd week in the raw.

Thanks for the immediate help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top