[wxPython-users] Windows ME errors

Werner F. Bruhin werner.bruhin at free.fr
Mon Mar 26 02:23:08 PDT 2007


Hi Saketh,

Saketh wrote:
> I'm having issues with Windows ME, for I'm getting some very odd 
> errors that I am unable to decipher. It seems like certain DLLs 
> present on Windows XP are not available on Windows ME. How can I 
> resolve this issue?
As Grant pointed out you might want to use the ANSI version.  I also 
found issues on Windows 98 and ME with running out of resources if your 
GUI is using a lot of controls/widgets, for that I force a garbage 
collection  after loading (importing and init) each group of widgets (in 
my case each Panel).

The code is like this:

    def MyGcCollect(self, message='', done=0, max=0):
        if self.runningPlatform in ['98', 'Me']:
            if done == 1:
                self.dlgPro = wx.ProgressDialog(_('Windows 9x - forcing 
release of resources'),
                           message,
                           max,
                           None,
                           wx.PD_AUTO_HIDE | wx.PD_APP_MODAL)
            self.dlgPro.Update(done, message)
            if done == max:
                self.dlgPro.Destroy()
           
        mypub.publisher.sendMessage(mypub.statusText, message)
        x = gc.collect()

Note that the ProgressDialog is needed, otherwise the garbage collection 
does not seem to happen on Win98 and ME.

Werner




More information about the wxpython-users mailing list