|
From: Georg S. <geo...@ti...> - 2003-09-23 07:22:16
|
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
|