From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Program crashes under dos but not under windows Date: Fri, 28 Jan 2000 16:30:46 +0200 Organization: NetVision Israel Lines: 13 Message-ID: <3891A816.CA931A39@is.elta.co.il> References: <389088a0 DOT 282746 AT news DOT chello DOT se> NNTP-Posting-Host: ras1-p46.rvt.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netvision.net.il 949069857 12166 62.0.172.48 (28 Jan 2000 14:30:57 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 28 Jan 2000 14:30:57 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,ru,hebrew To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com asdsad wrote: > > When running djgpp or djgpp compiled programs under DOS the programs > crash as soon as they are started. When running under windows it > works, but as soon as a press a key(any key) it crashes and windows > reports a page fault. Does this happen with *all* DJGPP programs, or only with those you wrote? For example, does the compiler crash? Probably not, since otherwise you couldn't have compiled your programs, right? If the crashes happen only with your programs, then please post here the source code of the shortest program that crashes in that way.