Subj : Re: Out of Memory in _setargv() To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Mon Sep 13 2004 10:11 pm The function _setargv is part of the startup sequence. It handles the program's command line arguments and executes before the code in main, WinMain or OwlMain. That it ran out of memory suggests that one of two things happened: - The program ran out of stack space - The sum of the declared global and static memory was too large to allow for the space taken by the command line argument array. (This includes the space used by any global class instances.) What memory model did you use? In the MAP file how big is the size of DGROUP? In the module definition file (*.DEF file) what value is given to STACKSIZE? .. Ed > Corinto wrote in message > news:41460aa6@newsgroups.borland.com... > > Thanks for answering my post. > > But, unfortunately that didn't help a lot. Because I move the exe > file to > Windows 2000 Professional Service Pack 4 128 MB RAM and still gives > me the > error > > Out of memory in _setargv() > > I don't know if I have to compile in the W2K environment, because, > what I > tried to run was the exe file compile and built in W95 > > any thoughts!!! .