I'm very sure my VB code sucks, I'm just not a VB developer. However, you have to also realise that I need to somehow connect to my C++ program and send unmanaged data like structures. It creates ugly VB code but at least, it works the way I want it to work
. Of course, if you know other methods to do the same thing better, I'll be glad to replace my file with your modified one
.
As for SendMessage(), it's used to be able to return a value to the caller. This shouldn't make anything freeze simply because when the message is received, a thread is created to display the toast and the function does not wait for the thread to end before it returns.
I really need all of you who are experiencing problems to tell me roughly how often it crashes and to send me the code you use to make a call to DisplayToast(). I'll investigate and I'm bound to find where the glitch is
.