TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Joe Kelch
from: Rob Landley
date: 1995-05-18 00:25:12
subject: Data space

> program to compile just fine, so I'm assuming I'm running out of data space.
>  I
> thought OS/2 kind of ended that problem.  How can I allocate more space for
> data?

You need to allocate a larger stack.  Try the following:  create a file named

file.def

and put the following lines into it:

NAME WINDOWCOMPAT
STACKSIZE 200000

Then feed that to the linker when you're linking.  It's a "module
definition file".  You need them for PM programming, too... 

The default stack IS a bit cramped, isn't it?  I had to do a larger one
when writing "bake", too.  200k should be plenty, the default is
around 32k, I think...  Not quite sure.  Pretty small.

Rob
 
--- Xblat
* Origin: The Conversation Pit, Marlton NJ 609-985-7553 OS/2 V34 (1:266/30)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 266/30 40 100 505 3615/50 396/1 270/101 105/103 42 712/515 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.