Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Can a COM Object Create Another COM Object?

$
0
0
Re: Can a COM Object Create Another COM Object?
FoxPro Programming
Re: Can a COM Object Create Another COM Object?
03/01/2012
03:19:37 PM
3G10WTWLX Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None

Yes that should work just fine.

I suggest however that you don't launch the secondary servers in the Init of the first server. Let the server initialize properly and then call another method to load the servers afterwards. This will ensure that the EXE is properly up and running.

+++ Rick ---



Hi

I created a COM exe that creates other worker COM objects that are also COM exes. Everything works fine if I create Manager Object using CreateObject("myManager") but if I created the manager as CreateObject("myManager.mymanager") then VFP locks up because Createobject never returns. If I comment out the creation of the worker objects in the manager object then either method works.

So I am wondering can a COM object create other COM objects. I was going to create a manager COM object that would create several work COM (exe) objects with the idea the Manager COM object would be used by some other software to run FoxPro jobs.

Thanks,
Simon



Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii


Viewing all articles
Browse latest Browse all 10393

Trending Articles