Results 1 to 1 of 1

Thread: ActiveX EXE Threading problem!

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Posts
    30

    Unhappy 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!
    Last edited by saltrange; Mar 24th, 2002 at 05:38 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width