Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Asynchronous execution from ASP
Message
 
To
03/01/2001 17:36:45
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00459142
Message ID:
00459186
Views:
24
>Hi all,
>
>I have a COM component written in Visual Basic and compiled as an ActiveX EXE. I'm able to instantiate and call it's public method from my ASP code but I can't get it to run asynchronously while I redirect the browser to another page which gives status updates.
>
>Does anyone have experience with calling COM methods from ASP that execute asynchronously?

COM doesn't support async operation, so natively this won't work. Typically what you do in a Web application is submit a task to a queue and then check the queue if it's done while the page refreshes to check for completion of the task.

I have some examples with Web Connection on my site for this, but it would work equally well for ASP.

http://www.west-wind.com/wconnect/enterprise.htm

Look at the bottom for the Aysnc request sample. You can look at the code that runs to make this work. It does use a separate VFP server that reads a queue, and runs a COM method specified there, then returns the result in another queue which is picked up by the application that's polling for completion.
+++ 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
Reply
Map
View

Click here to load this message in the networking platform