Re: How do you develop on the PocketPC?
"Luke Dunstan" <[email protected]>
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Message-ID | <[email protected]> |
I'm sorry to say that I've seen the NULL bug before but have been too distracted by the task at hand to fix it, but here is a patch that fixes it. By the way, I've recently tried running the remote part of "winpdb" (http://www.digitalpeers.com/pythondebugger/) on Windows CE and connecting to it over TCP/IP from the GUI running on the PC, and after a trivial change (to handle a lack of PATH environment variable) it worked fine. Personally I would rather have the ability to communicate to the remote debugger using ActiveSync rather than only TCP/IP because it is more convenient especially since I only have Bluetooth not WiFi, so I have been investigating using the Remote API (RAPI). Luke ----- Original Message ----- From: "Thomas Heller" <[email protected]> To: <[email protected]> Sent: Monday, January 09, 2006 8:51 PM Subject: [PythonCE] How do you develop on the PocketPC? > Does anyone (everyone ?) start the Python interpreter on the device, and > use the stylus to enter interactive commands? > Or does one write scripts on the PC, let ActiveSync transfer them, and > start them by clicking on the filename? > > I cannot really believe that. BTW, when an uncatched exception occurs > in a script, I see a box displaying: > > """ > Python Error > ============ > Traceback (innermost last): > <NULL>: <NULL> > """ > > When I close this box (by clicking the OK button in the upper right > corner), I can see (for less than a second) the interpreter window > showing the real traceback, but not long enough to be able to read it. > > So, I made a pair of scripts which start a server on the host PC, which > sends commands to a script running on the device, executing them, and > send the results back for display on the PC. Don't know if it is worth > to post it here... > > Thomas _______________________________________________ PythonCE mailing list [email protected] http://mail.python.org/mailman/listinfo/pythonce
null-exception-fix.diff
(application/octet-stream, 425 B)
--- python.c~ Tue Dec 20 23:52:46 2005
+++ python.c Mon Jan 9 21:58:49 2006
@@ -945,7 +945,9 @@ int WINAPI WinMain(HINSTANCE hInst, HINS
/*
* Get the error information
*/
- PyErr_Fetch(&Info.Type, &Info.Value, &Info.Traceback);
+ Info.Type = PySys_GetObject("last_type");
+ Info.Value = PySys_GetObject("last_value");
+ Info.Traceback = PySys_GetObject("last_traceback");
/*
* Put up the window
*/