[wxPython-users] Re: process stream CanRead() segfaults

Robin Dunn robin at alldunn.com
Tue Sep 5 08:56:24 PDT 2006


Brendan Simon wrote:
> As mentioned below, the command "bash -c 'for i in $(seq 10) ; do ls -l 
> /tmp ; sleep 1 ; done'" seems to work, HOWEVER it DOES segfault at the end.
> 
> I'm wondering if it is some kind of string termination problem with 
> python strings versus wxString.
> 
> The wxpython-demo works, but it uses a wxTextControl to return the 
> command, and the returned object is a wxString not a python string.

There are no wxStrings in wxPython.  They are always converted to/from 
either a Python string object or a Python unicode object (depending on 
the build type.)

> 
> How do I convert a python string into a wxString?
> Does wxString exist in wxPython ???
> I shouldn't need to use wxString, right??
> 
> BTW, it segfaults on the following systems.
>     wxPython-2.6.3.2.1.5 on Debian Testing(Etch) using gtk2.
>     wxPython-2.4.3.1 on Debian Stable(Sarge) using gtk1.

Did you check the things I mentioned in my last mail?

http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:mss:55078:200609:gkchhcnlbdkgmmhljlpi


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list