home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!Germany.EU.net!sekas.de!sparc!bip
- From: bip@sekas.de (Paul Bininda)
- Newsgroups: comp.os.os2.programmer
- Subject: Problems with DosSubFreeMem function call
- Message-ID: <BIP.93Jan28145839@SPARC.sekas.de>
- Date: 28 Jan 93 13:58:39 GMT
- Sender: bip@sekas.de
- Organization: SEKAS, Munich, Germany
- Lines: 34
- Nntp-Posting-Host: sparc
-
-
- A call to DosSubFreeMem sometimes results in error #312: "Overlap of
- specified block with a block of allocated memory"
-
- Program description:
-
- Process 1: Process 2:
-
- . .
- . .
- Loop: Loop:
- { {
- DosSubAllocMem (...); DosReadQueue (...);
- DosWriteQueue (...); DosSubFreeMem (...);
- } }
- . .
- . .
-
- Address and length of the allocated memory are taken from the result
- of DosReadQueue. Memory allocation and writing and reading of the
- queue are executed correctly. The error that happens with
- DosSubFreeMem is only caused during high call frequency.
-
- Has anyone encountered similar problems and/or knows a solution?
-
- Any help would be greatly appreciated.
-
- Please reply via email, since I am not a regular reader of this news
- group.
-
- --
- ----- Paul Bininda
- ----- bip@sekas.de
-
-