X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f NNTP-Posting-Date: Tue, 21 Oct 2008 21:19:04 -0500 From: "Charles Sandmann" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: failure of __dpmi_set_segment_limit() problem Date: Tue, 21 Oct 2008 21:19:02 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-RFC2646: Format=Flowed; Original Message-ID: Lines: 8 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 64.91.192.48 X-Trace: sv3-Uyg9YmfKYkPhxCyYAvtLqjvozTKTVv3pUknCs4mjYpV01CgkA0ToUVPB6h4SsRSjUlKZOyorpMD+eZ9!BBPKNB/n/xSY3NKVPZB8/4vWnsCsBlh25Ch+NNkCyBzeO63LrU398XvK8iLsySWGC50rMVMuHVrY!MbQH4QCHbKDzfy7T3rmdvdb73hwM+sQ= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You are not flagging to sbrk() that you have changed the segment limit; so when you call anything which calls sbrk() that requires it resize the memory it resets the limit. Don't set the limit to -1 manually, call _djgpp_nearptr_enable instead or look at it's source to see which flags need setting. There are some old FAQ and usenet articles about this if you search long enough..., but the easy thing is to call the libc function.