On Thursday 07 January 2010 09:58:36, Andre Heinecke wrote: > At Thursday 07 January 2010 00:54:32 Pedro Alves wrote: > > On Wednesday 06 January 2010 20:16:45, Danny Backx wrote: > > > The good news is that rshd works on my WM 6.1 device. > > > > > > The bad news is every time after executing an application through it, I > > > get a dialog on my phone saying that the application "device.exe" has > > > crashed, offering to send debug info to Microsoft. > > > > > > Tested with the tester.exe but also fibo, rcp, and a simplistic "ls". > > > > > > Clues on why device.exe might crash are welcome :-) > > > > Something to do with PipeDev.dll, most probably. > Hi, > I would guess the problem is not rshd but the way rshd is executing the > commands.
It uses redirects stdin/out/err to pipes implemented by PipeLib/PipeDev, using SetStdioPathW, and then creates the children using bog standard CreateProcess. <https://cegcc.svn.sourceforge.net/svnroot/cegcc/trunk/cegcc/tools/PipeLib/README>: "PipeLib implements a stream driver that is exposed in an interface similar to unnamed pipes on desktop Windows. Namelly, pipes are created with CreatePipe and the pipe ends are manipulated with the normal ReadFileW/WriteFileW/CloseHandle coredll.dll functions." Device.exe is "Device Manager". <http://msdn.microsoft.com/en-us/library/ms923714.aspx>: "Device.exe loads audio drivers, battery drivers, keyboard drivers, mouse drivers, NDIS drivers, notification LED drivers, serial drivers, PC Card drivers, USB drivers, and any other driver that exposes the stream interface. Device.exe loads most of its drivers with ActivateDeviceEx, and these drivers expose a stream interface. For more information, see Device Manager." One thing to confirm is, of course, if Danny did rebuild PipeDev.dll with the fixed tools. > What Console implementation do you use? When i used PocketCMD and > PocketConsole from Symbolic Tools i had the same problem. With MSFTS Command > Shell the crashes disappeared, so i guess the crashes come from > PocketConsole. rshd is a remote shell, there shouldn't be any console on the device involved, but it's worth a try. I assume that when Danny said "after executing an application through it", he already tried running the same executables on the device directly, without involving rshd, and that didn't crash (?). -- Pedro Alves ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel