delorie.com/archives/browse.cgi | search |
From: | "Nicolas Gasnier" <nicolas DOT gasnier AT wanadoo DOT fr> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: exit() makes my program crash!!!!! |
Date: | Sat, 16 Oct 1999 17:40:00 +0200 |
Organization: | Wanadoo, l'internet avec France Telecom |
Lines: | 51 |
Message-ID: | <7ua5vq$sm9$1@wanadoo.fr> |
References: | <19991012134544 DOT 29339 DOT rocketmail AT web107 DOT yahoomail DOT com> |
NNTP-Posting-Host: | borleans-1-2-7.abo.wanadoo.fr |
X-Trace: | wanadoo.fr 940088122 29385 193.250.147.7 (16 Oct 1999 15:35:22 GMT) |
X-Complaints-To: | abuse AT wanadoo DOT fr |
NNTP-Posting-Date: | 16 Oct 1999 15:35:22 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Did you free all the memory you eventually have allocated before exiting ? I've experienced some similar crashes due to memory that was not freed, so this can be the cause of the crash. I hope that help. -- +------- | Blade Cox | e-mail : nicolas DOT gasnier AT wanadoo DOT fr | e-mail alternatif : syntax DOT terror AT caramail DOT com homepage : http://perso.wanadoo.fr/blade Mohamed Saad a écrit dans le message <19991012134544 DOT 29339 DOT rocketmail AT web107 DOT yahoomail DOT com>... > >Hello everyone, > how are you? hope every thing is allright! > > well... here are some small questions! > > 1) a strange thing is happening! in a program of >mine, i made an Exit button! when it is pressed, it >simply calls... exit(1); > now... the problem is that when the button is >pressed, my whole program freezes!! it does not >respond to any thing! even ctrl-break does not work! > i tried to replace exit(1) with abort() and it >exited with no problem (but i can't use it! because it >outputs the stack contents and stuff!!) > > now what does exit(1) do to freeze the program?? > > (Note: I have not hooked any interrupts!! the >program is runnin in 640*480*65k colors... in case >this helps!) > > Please help me! I am so desperate!!! > >Thanx, > Mohamed El Dawy > >===== > >__________________________________________________ >Do You Yahoo!? >Bid and sell for free at http://auctions.yahoo.com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |