slewis@aerospace.aero.org (10/01/90)
I am trying to use Zortech to compile an application under Windows 3. I am using the large model on a '386 in extended mode with 4 Mb of memory. I use the flags suggested in the Zortech 2.1 manual and link with the microsoft 6.0 linker with the /CO /NOD and with and without /NOE options. The linked application is 145KB. When I run the application it exits immediately (Codeview shows no instructions executed) and "not enough memory" appears at the upper right on the monitor (or sometimes garbled characters of the same length). I believe this is a Zortech message but don't know what is going on or how to fix it. Windows reports 7.0 mb (with swap space) and 72% or system resources free.
bright@zardoz.UUCP (Walter Bright) (10/17/90)
In article <87220@aerospace.AERO.ORG> slewis@aerospace.aero.org () writes:
< The linked application is 145KB. When I run the application
<it exits immediately (Codeview shows no instructions executed)
<and "not enough memory" appears at the upper right on the monitor
<(or sometimes garbled characters of the same length). I believe this
<is a Zortech message but don't know what is going on or how to
<fix it.
This is probably caused by DGROUP just about filling up to 64k. There
is enough space to link, but not enough for the startup code to
allocate a temporary stack, thus the error message.
Try to reduce your DGROUP data size. Try the -R switch which puts
switch tables into the code segment rather than DGROUP.
dans@microsoft.UUCP (Dan SPALDING) (10/28/90)
In article <112@zardoz.UUCP> bright@zardoz.UUCP (Walter Bright) writes: |In article <87220@aerospace.AERO.ORG> slewis@aerospace.aero.org () writes: |< The linked application is 145KB. When I run the application |<it exits immediately (Codeview shows no instructions executed) |<and "not enough memory" appears at the upper right on the monitor |<(or sometimes garbled characters of the same length). I believe this |<is a Zortech message but don't know what is going on or how to |<fix it. |This is probably caused by DGROUP just about filling up to 64k. There |is enough space to link, but not enough for the startup code to |allocate a temporary stack, thus the error message. | |Try to reduce your DGROUP data size. Try the -R switch which puts |switch tables into the code segment rather than DGROUP. this happened to me when i left of the pascal keyword for WinMain. for some reason, it still linked correctly (except it didn't pull in any of the windows lib stuff) and would give no indication when run under CodeView. hope this helps.