ActiveX EXE Threading problem!
Hi...i have a serious problem..
I have an ActiveX EXE server (lets call it AX). AX has a Winsock OCX on a Form in it, that receives information from another computer.
Another DLL (DLL B) is referencing AX.
Now a very strange thing occurs.
If I change the Threading Model of AX to Thread Per Object, DLL B does not respond to any event raises from AX after data arrival to AX's Winsock, even though AX itself receives the data from its embedded Winsock and msgboxes it.
But if I change the Threading Model of AX to Thread Pool 1 Threads, DLL B responds to the event, but AX somehow repeats its own Private Sub twice, i.e., executing it two times over with one data arrival from its embedded Winsock.
I have no idea how to fix this...can anyone please help! I want it to have one event raise in DLL B corresponding with one Private sub execution in AX, as it should be!