感谢你们的回答,我看了帮助,发现有这么一段话:
If you send a message in the range below WM_USER to the asynchronous message
functions (PostMessage, SendNotifyMessage, and SendMessageCallback),
make sure that the message parameters do not include pointers.
Otherwise, the functions will return before the receiving thread
has had a chance to process the message and
the sender will free the memory before it is used.
我想可能是我发送时带的参数的问题。
如果我要带一个字符串的参数,我要如何写,能否给我可简单的例子,谢谢!