Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
State of the COM
Message
From
24/07/2001 17:03:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
State of the COM
Miscellaneous
Thread ID:
00534671
Message ID:
00534671
Views:
43
Hi all,

I'm looking at COM servers as a possible solution for one of our application that requires considerable time (approx 30 minutes) to process a certain task. And since this task needs to be run for at least 10 datasets; my ideal scenario would be to process the task independent of each other.

This is my first COM project and will very much appreciate anyone's inputs if my scenario is possible. And is a COM server (multithread-DLL) stateless?

Example scenario:
*-- This is my scenario as to how I might call the COM server
oMyCOM = CREATEOBJECT('MyCom.oCOM')
FOR i = 1 TO 10
   oMyCOM.LongTask(i) && Is this stateless?  Will the code run its course
                      && without waiting for the result or 30 minutes?
NEXT

*-- This is the COM DLL (multithread) class before being compiled as DLL
*-- Registered as MyCOM
DEFINE CLASS oCOM AS SESSION OLEPUBLIC
   PROCEDURE LongTask
      LPARAMETERS tiParam
      *-- Complex calculations, extraction, etc
      *-- that runs approximately 30 minutes
   ENDPROC
ENDDEFINE
I also welcome any suggestions/solutions you may have.
ramil
~~ learning to stand still
Next
Reply
Map
View

Click here to load this message in the networking platform