[Mono-list] Process.Exitcode is always less than 255

sumesh0710 sumeshjose at gmail.com
Wed Dec 12 01:35:21 EST 2007

 I have a dotnet program which is compiled in .net 2003 in windows. I run
this program in linux. It calls a c program in process.start() method from
.net. Upon some error conditions the c program returns the error code to
.net program. The problem is here. Suppose i return an error code 2053, and
when i read this code from process.exitcode in .net, what i get is 5. on
experiment i found that, what ever i return from c program, .net resets it
after 255. In above case its like 256*8=2048. 
2048+5=2053. and i get 5 in .net. In windows it works correctly.How to solve
this problem?any idea? 
View this message in context: http://www.nabble.com/Process.Exitcode-is-always-less-than-255-tp14289779p14289779.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list