Path: utzoo!attcan!uunet!wuarchive!cs.utexas.edu!sun-barr!newstop!male!mutchler From: mutchler@zule.EBay.Sun.COM (Dan Mutchler) Newsgroups: comp.windows.ms Subject: Re: "Not enough memory to run" error Message-ID: Date: 18 Oct 90 15:17:43 GMT References: <3506@ssc-bee.ssc-vax.UUCP> Sender: news@male.EBay.Sun.COM Lines: 39 In-reply-to: simnet@ssc-vax.UUCP's message of 17 Oct 90 18:29:32 GMT In article <3506@ssc-bee.ssc-vax.UUCP> simnet@ssc-vax.UUCP (Aileen Hsu) writes: I want to call the SYSTEM function inside my Microsoft Windows Application whenthe user select a particular menu item. The problem is every time the application attempts to execute the statement, a window comes up with the Command title and says "Not enough memory to run". I'm using Windows 286 ver. 2.0 and Windows SDK ver. 2.0 running on an Everex 386 machine. I have 640K conventional memory, 2 MB expanded and 4MB extended. My config.sys file has the following entries: DEVICE=EMM.SYS AT 208 ND BREAK=ON BUFFERS=10 FILES=20 LASTDRIVE=E SHELL=C:\DOS\COMMAND.COM /P /E:512 DEVICE=C:\SMARTDRV.SYS 512 DEVICE=C:\HIMEM.SYS DEVICE=C:DOS\ANSI.SYS INSTALL=C:C:\DOS\FASTOPEN.EXE C:=(50,25) DEVICE=QUIKMEM2.SYS 256 DEVICE=C:\UTIL\OX.SYS IF I do the mem command after window is brought up, the machine still has 450K conventional, 1.8MB expanded and 0 extended (don't know why) memory left. Is this not enough to call SYSTEM. The Windows application with the SYSTEM call is very simple, I created just to see if it would work. Can anybody out there help me with this since Microsoft no longer provides free support for their SDK? Any kind of help will be greatly appreciated. Aileen Hsu Try making it "FILES=99". Windows appears to give "Not enough memory" when it runs out of any system resource. I ran into this problem under Windows 3.0 and changing the number of files seemed to fix it. -- Dan Mutchler | ARPA/Internet: mutchler@zule.EBay.Sun.COM Sun Federal System Engineer | UUCP: ...!sun!mutchler -------------------------------------------------------------------------- Flying back from Lubbock, I saw Jesus on the plane Or maybe it was Elvis, You know they kind of look the same. -- Don Henley