problem using OpenNetCF SDF Process class

J

Jose Antonio

Hi,

We are launching an application from a Compact Framework
app using the Process class which is available on the
OpenNetCF SDF library. When we call "Process.Start" we
pass as parameters the path of the executable to launch
and the command line parameters.

The problem is that the launched app does not receive the
parameters correctly.

The executable is another Compact Framework application
and it needs four arguments:

- the path of the application to launch is "\Program
Files\AppManager\AppManager.exe".
- the commnad line parameter string is "\"\\Program
Files\\CCA\\CCA.exe\" user password 1", where "1" is a
number which has to be parsed as an integer.

The first application passes the parameters correctly, but
the launched application receives in that case a "Q"
character appended to the end of the string. This only
happens when the number "1" is the last character of the
command line parameters.

Thanks in advance for your help.

José Antonio
 
P

Peter Foot [MVP]

I caught the report of this on the forums a while back and posted a
response, don't know if it was in the same thread though. The answer is that
up to the last code release the arguments parameter was not being properly
null terminated which lead to extraneous characters appearing at the end.
This has been fixed since that release and the fix will be available in the
next binary release. I will have to double check that the updated code has
been uploaded to the online source browser.

HTH,

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top