Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Craig Moore
  Where is Craig Moore?
 
 United Kingdom
 Craig Moore
 To: Eric den Doop
  Where is Eric den Doop?
 Houten
 Netherlands
 Eric den Doop
 Tags
Subject: Dam your quick Eric,
Thread ID: 22581 Message ID: 22584 # Views: 38 # Ratings: 0
Version: Visual FoxPro 7 Category: Active X Controls & OLE Automation
Date: Tuesday, April 22, 2003 4:54:56 PM         
   


> > Hi all,
> >
> > I have a small problem.
> > I have a generic search engine which can search across several different data sets. individually it works fine.
> > What I am trying to do is,
> > search across all of the data sets looking for information relating to specific search criteria.
> > To do this I decided to create a COM Object. thus for each dataset I create an instance of the COM Object.
> > this COM Object works well for one dataset, when an instance of the COM object is created I can see it in the task manager. BUT if I create another instance of the com object, and look at the task manager, I only see the one instance. (it appears that both Instances appear to be looking at the one COM Object, I even get "File in use errors" upon activation the second instance")
> >
> > Is there somewhere where we can say "allow multiple instances"
> >
> > Thanks
> > Mark
>
> Yes. Open the Project Info dialog (Ctrl+J) and activate tab "Servers". Locate your class and select "Single Use" to force the COM EXE to start a new session when you create a new instance of the server class. Important to keep in mind is that your need to program in SHARED mode, so USE tables SHARED and OPEN DATABASE dbc SHARED. Good luck!
> --
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts


COMPLETE THREAD

COM server (EXE) Posted by Mark Kerins @ 4/22/2003 4:17:03 PM
RE: COM server (EXE) Posted by Eric den Doop @ 4/22/2003 4:52:28 PM
Dam your quick Eric, Posted by Craig Moore @ 4/22/2003 4:54:56 PM
RE: Dam your quick Eric, Posted by Eric den Doop @ 4/22/2003 5:06:02 PM
RE: COM server (EXE) Posted by Craig Moore @ 4/22/2003 4:53:41 PM
RE: COM server (EXE) Posted by Mark Kerins @ 4/22/2003 6:04:00 PM