rmi and Pocket PC 2003
843849Dec 14 2004 — edited Sep 20 2005Has anyone noticed any difference with rmi on Pocket PC 2002 and Pocket PC 2003?
I am having an issue porting our Java application from Windows CE 3.0 to Windows CE 4.2 - an IPAQ 5450 to a 2210.
The application works fine generally but we seem to have a problem with the native calling of a C++ dll. The dll uses the CreateProcess(x,..,x) C++ method to kick off an eVB application that handles the printing of our reports. The eVB application retrieves data from a text file to create our reports and handles the printing of the reports with PrinterCE.dll. All works fine, the report prints off..... but then when the PrinterCE has completed, it closes AND our application closes too.
Previoulsy on CE 3.0 control simply returned to our application and the user could continue to print another report... or do anything else.
So the basic issue is why does the Java application close down when the JNI call has completed.
If anyone else has experienced a similar problem I would be interested to know.
Thanks
Below is the core of the C++ source for the dll...
CreateProcess(tCmd,tParams,
NULL,NULL,NULL,
CREATE_NEW_CONSOLE,
NULL, NULL, NULL, &processInfo);
CloseHandle(processInfo.hThread);
WaitForSingleObject(processInfo.hProcess, INFINITE);
GetExitCodeProcess(processInfo.hProcess, &dwExit);
CloseHandle(processInfo.hProcess);
delete tCmd;
delete tParams;