| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Harm from DosExit? |
On Tuesday March 05 1996 at 17:57, Peter Fitzsimmons wrote to Coridon Henshaw: PF> However --- the fact that exit() is getting stuck may be a sign that PF> there is a bug in your program -- for example, the heap is corrupted. I stepped through the exit()'s code and it was getting stuck in a memory-free loop. PF> Try calling _heapchk [or whatever your compiler provides] just before the PF> exit() and see what it has to say. Been there, done that. Heapchk returns OK. It turns out that I was malloc()ing memory in a DLL and fiddling with it using realloc() and free() it in the .EXE -- something that Watcom doesn't like at all. I'm statically linking the (former) DLL code with the rest of the program to avoid this problem. (I know, I know, freeing memory in a different program source file than it was allocated is generally considered a design flaw, but I couldn't think of any other way to do it.) --- GoldED/2 2.50 UNREG* Origin: For sale: 30 pieces of silver. Contact N. Gingrich. (1:250/820) SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 250/820 501 99 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.