[wxPython-users] App.SetAppName & App.SetVendorName

Robin Dunn robin at alldunn.com
Wed Jan 31 16:49:36 PST 2007


Joe Brown wrote:
> Thought I'd try a version of wxPython latter than 2.6.
> 
> My Application keeps gpf's on exit...  This makes no sense to me.
> 
> My first suspect was the App class, so I started inspecting my OnInit
> and discovered that if I comment out the piece where it sets both
> AppName & VendorName...  I get to run it once w/out crash then the next
> execution, it crashes (gpf) on exit.
> 
> I've tried commenting out the config.read/writes and that doesn't appear
> to have any affect.
> 
> I haven't been able to isolate the cause any further.
> 
> XP, Python 2.4 & wxPython 2.8 I think this behavior also existed in 2.7
> 
> Commenting app/vendor settings works for one execution of my program,
> but then subsequent executions also gpf.

So, if it is related to the config, this leads me to believe that it has 
to do with using values that are read from the config instead of 
whatever you use for defaults, (because changing the app/vendor names 
would essentially mean you are starting without a config the time that 
works.)  If that doesn't help you track it down further then try making 
a sample app that does nothing but use a config object similar to how 
you are doing it in your app, and see if that duplicates the problem.

http://wiki.wxpython.org/index.cgi/MakingSampleApps

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





More information about the wxpython-users mailing list