No data from OpenNETCF.Diagnostics.Process

  • Thread starter Thread starter Davide
  • Start date Start date
D

Davide

Hello.

I am stuck with a very annoying problem.

I am developing an application for a Windows CE 4.2 device using .NET
CF and OpenNetCF v.1.1.
I need to start an Internet Explorer browser when clicking a button in
my application. To do this I use OpenNETCF.Diagnostics.Process class.
The code is the following:

Private procStartInfo As New OpenNETCF.Diagnostics.ProcessStartInfo
Private extProcess As New OpenNETCF.Diagnostics.Process
extProcess.Start(procStartInfo)

The process starts but properties values from the extProcess object
accessed from the main application (and in particular I am trying to
obtain HasExited property value) cannot be taken (the process ID is
zero) and other properties are 0, false or give exceptions. It seems
the extProcess object is not related to the running IE process.

Can anyone help on this issue ?
Thank you in advance.

Best regards.


Davide Pozzi
 
You might use the latest version (SDF is at 1.4, now), just to be sure that
there isn't a fix already in place. Remember that you can get the source
from the Web site, also, for debugging purposes.

Paul T.
 
Thank you for your quick answer.

I know that OpennetCF is now at 1.4, but the provided installers are
only for Englsih version of Visual Studio and I am using the Italian
one. Anyway, are there known problems in upgrading from SDF 1.1 to 1.4
? I am near the end of an important project and I don't want to mess
things up (especially after the unsuccessfully experience I had in
installing SDF 1.3)...


Davide Pozzi
 
In that case, you might write a new program, just to test the process class
in 1.4, include the source directly in your project, rather than trying to
build against the full SDF 1.4, and see if you get the right answer. If so,
the best thing to do would be to upgrade and you'll know that (or you could
build your own version of the new process class and use *that*, rather than
referencing the OpenNETCF version). The beauty of having source...

Paul T.
 
Paul, thank you for your quick and valuable answers.

I will certainly use SDF 1.4 in my new projects but for now I have
solved my issue exploiting main window and external application focus.

Davide Pozzi
 
Back
Top