|
From: Jim R. <jr...@er...> - 2003-10-30 19:36:33
|
Philip, I hit the same basic problem - and have no solution. In my case, I received an iMarshall request, then no other COM requests. Again the app works find as a batch file, just not in the wrapper. I have no further clues. Jim On 2003.10.30 12:13, Philip Kubat wrote: > My application is a WMI (Microsoft Wbem) java application. I have > used JNI > to access WMI via DCOM. The applications works fine if it is run via > the > command line and java. It does not work within wrapper. I believe > the > problem is how I am "passing" the pointer to the IWbemServices object. > In > msdev debug I do not seem to retain a valid object (via pointer) of > the > object that I need methods of in additional JNI calls. I have two JNI > functions. One that creates and connects to WMI via DCOM then stores > the > pointer into the java environment (in the object that makes the > function > call to JNI). The second uses methods of that WMI object via the > pointer > to retrieve system data, this methods is used several time through out > the > application. Any ideas and thought would be helpful. > > > > Does wrapper some who create new threads for these JNI calls? Do I > need a > better means to pass the pointer? Is there a what to protect the > memory of > that pointer? > > > > Thanks! > > -- Jim Redman (505) 662 5156 x85 http://www.ergotech.com |