home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 8105 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

  1. Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!Germany.EU.net!sekas.de!sparc!bip
  2. From: bip@sekas.de (Paul Bininda)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Problems with DosSubFreeMem function call
  5. Message-ID: <BIP.93Jan28145839@SPARC.sekas.de>
  6. Date: 28 Jan 93 13:58:39 GMT
  7. Sender: bip@sekas.de
  8. Organization: SEKAS, Munich, Germany
  9. Lines: 34
  10. Nntp-Posting-Host: sparc
  11.  
  12.  
  13. A call to DosSubFreeMem sometimes results in error #312: "Overlap of
  14. specified block with a block of allocated memory"
  15.  
  16. Program description:
  17.  
  18.     Process 1:                          Process 2:
  19.  
  20.       .                                    .
  21.       .                                    .
  22. Loop:                               Loop:
  23. {                                   {
  24.     DosSubAllocMem (...);               DosReadQueue (...);
  25.     DosWriteQueue (...);                DosSubFreeMem (...);
  26. }                                   }
  27.       .                                    .
  28.       .                                    .
  29.  
  30. Address and length of the allocated memory are taken from the result
  31. of DosReadQueue. Memory allocation and writing and reading of the
  32. queue are executed correctly. The error that happens with
  33. DosSubFreeMem is only caused during high call frequency.
  34.  
  35. Has anyone encountered similar problems and/or knows a solution?
  36.  
  37. Any help would be greatly appreciated.
  38.  
  39. Please reply via email, since I am not a regular reader of this news
  40. group.
  41.  
  42. --
  43.                                           -----  Paul Bininda   
  44.                                           -----  bip@sekas.de
  45.  
  46.