|
-
Sep 27th, 2001, 08:42 AM
#1
Thread Starter
Fanatic Member
Callbacks
blue arial small
Can anbody tell me how to make threaded callbacks in VB 5.0
I have developed simple callbacks in vb, but many a times there will be collision.. How to go about it..??
-
Sep 28th, 2001, 05:32 AM
#2
Fanatic Member
Events
I like using events for "call backs" in VB. Much more tidy and without hte need for API calls.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Sep 28th, 2001, 06:36 AM
#3
Thread Starter
Fanatic Member
Hi
I am not using any api's... i am using simple class..
The problem is if the client requests and the server is in process of responding the client, by this time another client request, the server handles all these things procedureal wice... I want it to be threaded.. like for every client calls the server should create thread but very well share global variables...
-
Sep 28th, 2001, 08:30 AM
#4
Fanatic Member
Phrasing
I'm sorry but I am struggling to understand your reply. Please could you re-phrase more clearly?
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Sep 28th, 2001, 10:15 AM
#5
Are you assigning an ID to every connection to your object? I guess we can't answer the question without knowing how you are doing your callbacks. Post us some code please.
-
Sep 28th, 2001, 11:20 AM
#6
Frenzied Member
Well . . .
What you need is an inprocess wrapper to an ActiveX EXE.
The callbcak goes to the wrapper. The wrapper persists an object in some way (you choose) and raises an event (or custom callback) to the EXE.
The EXE now knows that there is more processing to be done, and creates an object on a thread to do it.
This may not even work - you will need to ensure only ONE instance of the EXE exists in order to keep the threads under the same process.
I will have to give this a go, but for now this is the best guess I've got.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|