Subj : Re: Out of Memory in _setargv() To : borland.public.cpp.borlandcpp From : Corinto Date : Mon Sep 13 2004 04:01 pm Hi Mark! 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!!! :-( "Mark Manning" wrote in message news:4143e3b0@newsgroups.borland.com... > Well, this is all I can contribute: > > 1. argv is one of the two arguments to a program. > int main( int argc, char *argv[] ){} > > As you can see, argv is what is used to hold the characters sent to the > program as arguments. > > Thus, my thought would be that, because you only have 16MB of memory for > Windows 95 to run in - that there isn't enough memory left over to load > the program and then try to create the argv array. > > I can not see why you would want to run Windows with only 16MB of > memory. Memory now-a-days is very cheap and should not cost you more > than $50.00 for about 64MB or even 128MB of memory. If your system is > an old one what you should do is to look around on the net (like eBay or > maybe some other auction site) and find a system up for sale which uses > the same kind of memory you use. I've seen them for as little as > $25.00. Buy one and upgrade the memory in your system. Most computers > need at least 64MB of memory in order to compile and test programs. > > Hope this helps. > > Mark > > Corinto wrote: > > > Hi everyone!!! > > > > First of all, I don't know if this is the right place to post my question. > > If it isn't, I'm sorry! > > > > Anyway, I'm new to Borlan C++ and I have this problem.. > > > > I have a c file trying to compile it in the Borland C++ 3.1 for Windows > > running in a Win 95 16 MB Ram. > > I also have to call a DLL which I don't have a clue on what was written in. > > > > But, after fighting a lot with the .lib and .def > > I finally did compiled it and linked it but the newly create .exe file gives > > me this error while trying to run it > > > > Out of Memory in _setargv() > > > > I don't know what's going on. If you, please, give me an idea? I would > > really appreciate it. > > > > Thanks a lot in advance... > > > > > .