I have a worker thread which collects data from an external device. The worker thread keeps the main thread with the UI informed about its state. For this I'm using variations of:
SendMessage( hwndParentThread, WM_NOTIFY, 0, TEXT("Connection successful.")).
Now, the debugger complains about a memory leak. As I'm not really sure about what happens with the memory allocated for the strings I'm wondering whether the leak stems from the strings I pass between the threads (e.g. TEXT("Connection successful.")
).
If anyone could point me into the right direction I would really appreciate it.