🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Paul Bininda Thu, 28 Jan 1993 13:58
Problems with DosSubFreeMem function call
#3718
Author: Paul Bininda
Date: Thu, 28 Jan 1993 13:58
33 lines
1595 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads