Announcement

Collapse
No announcement yet.

No GlobalFree for GlobalAllocation ???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • No GlobalFree for GlobalAllocation ???

    Hello...

    I am using PBDLL 5 and testing my apps with MemCheck..
    When i declare an array as global i get the errormessage no Globalfree for GlobalAllocation.
    Is there anything i can do???...Michael

  • #2
    Yes, ignore the "error". All global variable allocations are released when your app terminates.

    While tools like MEMCHECK or BoundsChecker are very useful, they throw up lots of warnings - the trick is to know which are real problems, and which are not... it's a case of experience being the teacher. In general, most of the errors for GDI objects are real, but many of the others are not.

    I spent ages trying to track down a multitude of errors that Memcheck reported when I used IMGDLL.DLL in my apps, and I eventually discovered that these were all false error reports too. As I said - experience is a good teacher!

    BTW, have you tried using the API that Memcheck exposes? The "mc_debug" API is useful to be able to place info into the Memcheck logfile from within your code - useful for narrowing down the cause of an error within your code.


    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Thank you Lance...Michael

      ------------------

      Comment

      Working...
      X