Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Cookie or NOT to cookie, THAT is the question
Message
 
To
07/07/2004 16:39:28
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00822654
Message ID:
00922840
Views:
35
Make sure the client threads are STA style threads. Otherwise you'll get all sorts of problems, although blocking should not be one of them.

Are you createing new instances of your object on each thread? That would be the other requirement for this to work - the object must be called from the same thread that created it.

+++ Rick ---

>Hi Christof,
>I am trying to use a Multi-Threaded VFP object from a Delphi app.
>
>It is blocking - anytime the Delphi app uses the VFP object, one thread at a time succeeds.
>
>I cannot seem to get it to run multi-threaded at all.
>It does not make any difference if I run it in VFP 8, VFP 9, or if I set the project options to Single Instance or Multi Instance.
>
>In my debugging, I used the win api GetCurrentThreadID.
>The Delphi Threads do indeed have different IDs.
>The VFP object always has the same ID (not the same as the Delphi ThreadID)
>
>So, it seems like there is some kind of proxy thread running my VFP object.
>
>Is it possible to make the VFP object non-blocking so I can get real MultiThreading?
>If so, any ideas of how to proceed would be greatly appreciated!
>
>Many Thanks,
>Michael Cummings
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform