VB6 Single-Threaded Application
- From: n.amendola@xxxxxxxxxxxxxx
- Date: 30 Apr 2007 16:36:56 -0700
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
.
- Follow-Ups:
- Re: VB6 Single-Threaded Application
- From: mstefanik
- Re: VB6 Single-Threaded Application
- From: Paul Clement
- Re: VB6 Single-Threaded Application
- From: J French
- Re: VB6 Single-Threaded Application
- From: Schmidt
- Re: VB6 Single-Threaded Application
- Prev by Date: Re: SQL Server View in VB
- Next by Date: Re: Pixel Mania
- Previous by thread: Re: App Shutdown Slooooow
- Next by thread: Re: VB6 Single-Threaded Application
- Index(es):
Relevant Pages
|