阅读:2309回复:3
VXD 与 APP 同步问题
Anybody know the synchronization between VXD and App ?
Because when I try to make TDI monitor, I hook all TDI function to my func, and in my func, I use SHELL_PostMessage( ) to post message to my APP, but it is very strange that all the message Hook func send to APP are out of order, for example, I send "1", "2", "3" to APP, the APP display message by order "3", "2", "1". Finally, I use share event between APP and VXD, after VXD use SHELL_postmesage( ), following a VWIN32_WaitSingleObject( ), and in APP, after receive a message from VXD, I use SetEvent( ) to notify VXD. But very puzzle thing is, when I use only one this instruction in only one VXD func, it works well, but if I use it in two VXD func or more, it always cause my test server ( a chat Server I made ) deadlock, but the chat client doesn't affected. If anyboby can give an answer, I will very appreciate him. I have stop there for more than four days. WU WU WU :( :( |
|
沙发#
发布于:2002-11-29 15:16
maybe i can help you
|
|
板凳#
发布于:2002-11-29 15:25
Anybody know the synchronization between VXD and App ? The hardware you are developing is a FIFO card? But it is not. |
|
|
地板#
发布于:2002-11-29 15:41
问的太多了,自己先搜索吧
|
|