|
From: Philip K. <pk...@sp...> - 2003-10-30 19:13:55
|
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! |