I have an application using wxpython as well as some COM objects and
threads.
In order for my COM objects to work between the threads I set:
sys.coinit_flags=0
I get an error from wxApp "Cannot Initialize OLE" but any functions I
am using seem to work fine. Just looking for a way to suppress that
message because it hangs the program once I freeze it with py2exe.
Thank you for any help you can offer
On Sep 3, 8:37 am, James <jscr...@gmail.com> wrote:
I have an application using wxpython as well as some COM objects and
threads.
In order for my COM objects to work between the threads I set:
sys.coinit_flags=0
I get an error from wxApp "Cannot Initialize OLE" but any functions I
am using seem to work fine. Just looking for a way to suppress that
message because it hangs the program once I freeze it with py2exe.
Thank you for any help you can offer
James
That sounds like a py2exe error to me. Have you tried asking the
knowledgeable folks in the py2exe mailing list?
It is a wx.LogError message, so you should be able to suppress it by creating an instance of wx.LogNull and holding on to the reference until you no longer need to suppress log messages.
You could also try creating the wx.App (and therefore initializing wx) before you do the initialization for your other COM stuff.
···
On 9/3/10 6:37 AM, James wrote:
I have an application using wxpython as well as some COM objects and
threads.
In order for my COM objects to work between the threads I set:
sys.coinit_flags=0
I get an error from wxApp "Cannot Initialize OLE" but any functions I
am using seem to work fine. Just looking for a way to suppress that
message because it hangs the program once I freeze it with py2exe.
Thank you for any help you can offer
On Fri, Sep 3, 2010 at 3:45 PM, Robin Dunn <robin@alldunn.com> wrote:
On 9/3/10 6:37 AM, James wrote:
I have an application using wxpython as well as some COM objects and
threads.
In order for my COM objects to work between the threads I set:
sys.coinit_flags=0
I get an error from wxApp "Cannot Initialize OLE" but any functions I
am using seem to work fine. Just looking for a way to suppress that
message because it hangs the program once I freeze it with py2exe.
Thank you for any help you can offer
It is a wx.LogError message, so you should be able to suppress it by
creating an instance of wx.LogNull and holding on to the reference until you
no longer need to suppress log messages.
Calling the static "EnableLogging" method should also suppress the message.