Ramil,
Mike and Rick have given you the right information. For additional resources, there are some articles on my website and my current series in FoxTalk. I'll also be doing a COM+ session at San Diego.
>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)
>
>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.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer