Differnce in execution behaviour

Hello!

I made an app which gathers thumbnails of items based on filters set by the user and shows them in a “Thumbnail Control”.

When running this app from within my IDE ( Pfaide ) , everything runs smooth , but when i run it from a shortcut on the desktop ,

it “hangs” while gathering the thumbnails ( Please note i have a “Progress Bar” running showing the collection progress to the user ) .

Is there any basic difference between these two execution methods that i am missing?

The app runs on various windows OS ( XP , Vista , Seven ) with python 2.5.4 and wxPython 2.8.10.1 .

Thank you for any hints you might have for me…

Elias Alhanatis

No need to bother! Case solved!

In case anybody encounters a similar problem , it was created by some print statements

i had placed for debuging , which crashed the app when it was ran outside the IDE. After

removing the print statements , both cases work fine.

Thank you in any case , for all the help i got over time…

Elias Alhanatis

Hi Elias,

No need to bother! Case solved!

Great that you found it.

In case anybody encounters a similar problem , it was created by some print statements
i had placed for debuging , which crashed the app when it was ran outside the IDE. After
removing the print statements , both cases work fine.

Also, I don't understand why print statement would crash your app.

Instead of using print statement for debugging I would suggest that you consider using Python's logging module. I just recently started using it and I really like it, one can put debugging in until it comes out your ears and if you don't want it you just set a value in e.g. a logging configuration file and/or some startup option or ....

Werner

···

On 29/11/2012 11:40, Elias Alhanatis wrote: