|
From: Jim R. <jr...@er...> - 2003-09-23 13:45:31
|
Georg, We're wrapping an OPC (http://www.opcfoundation.org) server and no OPC client is running. The iMarshal query is associated (somehow) with the wrapper. I checked the source to see if I could find anything COM related there, but didn't find anything. But I could have missed something. It is also, perhaps, something to do with service managment, but in this case I was running as a console application. Jim On 2003.09.23 01:22, Georg Schmid wrote: > Jim, > > just guessing: for some reason, when running from the batch file, > both server and client run inside the same COM compartment, but when > using the wrapper, they run in different compartments and therefore > calls from the client to the server need to be marshalled. > > Georg > > Jim Redman wrote: > >> I have a problem wrapping a COM server. Wrapping COM clients seems >> to >> work fine also. The COM Server is implemented as a JNI. The server >> works >> fine from a batch file. >> >> Running the code from the batch file, I see all the expected startup >> messages. I see the same thing from the wrapper (console mode), but >> this >> is immediately followed by a "QueryInterface" with a ID of >> iMarshal. This >> fails (which is OK) this request is then followed by an IUnknown >> request >> (which succeeds). HOWEVER after this, the COM client does not work. >> >> With the batch file I see the "CreateInstance" followed by lots of >> COM >> requests. With the wrapper, I see none of these. Attempts to >> access the >> interface fails. >> >> Anyone have any thoughts or suggestions? Where do the COM calls >> come from >> in the wrapper - I couldn't find any? >> >> Jim >> >> >> > >-- > -- > Georg Schmid > Special Applications Section Manager mailto:geo...@ti... > Freising Wafer Fab (FFAB) Make IT phone: +49 8161 804595 > Texas Instruments Deutschland GmbH fax: +49 8161 803350 > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user -- Jim Redman (505) 662 5156 x85 http://www.ergotech.com |