When calling PostMessage() what message ID are you passing? Hopefully it's something in the WM_USER or WM_APP range. Anything below WM_USER is for Windows use, and some of those messages are preprocessed.

Robert


----- Original Message ----- From: "Mark Wyszomierski" <[EMAIL PROTECTED]>
To: "Reid Thompson" <[EMAIL PROTECTED]>
Cc: <sqlite-users@sqlite.org>; <[EMAIL PROTECTED]>
Sent: Thursday, September 15, 2005 12:34 PM
Subject: Re: [sqlite] tracing memroy leak


I traced this error down a bit, it only appears when using windows'
PostMessage() to communicate between applications. Both applications have
their own database handles for sure. When one app gets some data, it simply
uses PostMessage() to inform the other app that some data has been received..
It is at this point that if I try accessing the database in this message
handler, the memory leak occurrs. I even took the additional precaution of
creating an entirely new database handle inside the message handler itself.
If I replace PostMessage() with SendMessage(), no leak occurrs. However,
replacing PostMessage() with SendMessage() would be a huge penalty. Any
ideas why there is a problem here?
Thanks,
Mark
On 9/15/05, Reid Thompson <[EMAIL PROTECTED]> wrote:

Jay Sprenkle wrote:
> The premier analysis tool that I know about is valgrind:
>
http://valgrind.org/info/about.html

splint may be of interest also http://www.splint.org/

reid



Reply via email to