VB6 Single-Threaded Application

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I hope there is a grand GURU out there that can help me with a
question related to VB6 threading.

I have a VB6 application which references an ActiveX DLL that I wrote.
The DLL contains 2 class modules and a Form. The class modules are
similar in functionality to the ADO Connection and Recordset objects.

The form contains an ActiveX component which I also wrote.

The ActiveX component uses SocketWrench from Catalyst Software to send
a message to a remote server. SocketWrench is operating in Blocking
mode so that the component awaits a response from the remote server
before it completes.

Here is my problem:

When a call my class module, I expect my application to be suspended
until I get a response from the remote server, however, while I am
waiting, my application is responding to other events, like MouseMove
which is creating another instance of the class module causing all
kinds of problems.

I was under the impression that my application was running on a single
thread and I didn't have to worry about other processes running at the
same time.

How do I get my application to operate synchronously throughout the
process.

Thanks in advance,

Nick Amendola

.



Relevant Pages

  • Re: VB6 Single-Threaded Application
    ... ¤ Hi, ... The DLL contains 2 class modules and a Form. ... mode so that the component awaits a response from the remote server ...
    (microsoft.public.vb.general.discussion)
  • Re: Create UDF in Class Moduels? (frm Leo)
    ... See response in .misc. ... I need to know if we can use Class Modules to creat User Defined ...
    (microsoft.public.excel.programming)