Mail Archives: djgpp/1999/11/04/16:29:30
Message-ID: | <3821E566.15FB@radar.mcgill.ca>
|
From: | Frederic Cazenave <cazenave AT radar DOT mcgill DOT ca>
|
Organization: | IRD (ex ORSTOM)
|
X-Mailer: | Mozilla 3.0 (X11; I; IRIX64 6.1 IP26)
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | DPMI memory allocation
|
Lines: | 37
|
Date: | Thu, 04 Nov 1999 19:57:46 GMT
|
NNTP-Posting-Host: | 132.206.246.96
|
X-Complaints-To: | abuse AT mcgill DOT ca
|
X-Trace: | carnaval.risq.qc.ca 941745466 132.206.246.96 (Thu, 04 Nov 1999 14:57:46 EST)
|
NNTP-Posting-Date: | Thu, 04 Nov 1999 14:57:46 EST
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
I have written an application which allocates all
the free pages of my memory to make a very large
ring buffer. This buffer is filled when I receive
an interrupt from an acquisition board. The main
program reads the buffer and displays the data on
the screen using allegro lib. Everything works
fine until I ask to save data. Then I open a file
in binary, and each time a "Save_Buffer" is near
to be full I write it on the file. This write
operation crashes my machine most of the time.
If it works one time, I can ask to repeat the
operation without problem.
The system works if instead of allocating all the
free pages of the system I only allocate 50 kb.
Even if I try with half of the free pages the system
crashes.
What's wrong ?????
Thanks in advance
Could you send me your answer by email too.
Fred
--
_________________________________________________________
| |
| Frederic CAZENAVE |
| _/\_ /^= McGill Radar |
| \_/ \// Box 198, MacDonald College |
| | /-\ | Ste Anne de Bellevue |
| || || Quebec, Canada H9X 3V9 |
| Tel (514) 398 7733 fax (514) 398 7755 |
| mailto:Frederic DOT Cazenave AT hmg DOT inpg DOT fr |
| http://www.mpl.orstom.fr/hydrologie/catch/ |
|__________________________________________________________|
- Raw text -