Hi Erel, Taximania, Agraham et. al.
I've been trying to make the TakePicture program to run, with no success.
If I use the "process.CloseMainWindows" I get an error with a lot of messages:
System.Diagnostics.Process.EnsureState()
in
System.Diagnostics.Process.get_HasExited()
in
System.Diagnostics.Process.EnsureState()
in
System.Diagnostics.Process.get_ExitCode()
in
Threading.Process.ExitEvent()
in
System.Diagnostics.Process.OnExited()
in
System.Diagnostics.Process.RaiseOnExited()
in
System.Diagnostics.Process.CompletionCallback()
at
TermWaiter.WaitForTerm()
So, I just tried to start anoher process (calc.exe) to chek it, with the same result.

If I use "process.Kill", it works 1 time, and then it says " the camera is in use", but camera doesn't appear on the Programs in execution.
Is it needed to use WM 6, or .net CF 3.5 to make it run, or what am I doing wrong?
I'm using an HTC P3600, with .Net CF 2.0 and WM 5.0
Could you help me with this?