title: PyInstaller packaged application works fine in Console mode, crashes in Window mode
body: <p>I am building a fairly complex application using Python and PySide. Finally the day of the release is nearing so I want to build this application as an exe. </p>
  
  <p>However, I have a strange problem on my hands. I've used PyInstaller (using version 2 by the way) in the past and never had this happened to me.</p>
  
  <p>Basically, when I build the application with the <code>--console</code> flag, it works fine - but it opens the console window. When I build the application with the window flag (<code>-w</code>), it doesn't work fine. It starts and everything, but there are all these weird glitches. For example, loading a text file often raises the <code>BadFileDescriptor</code> error (which doesn't happen in console mode), and the application crashes after performing a certain task. What's worse is that the task is a loop, and it performs fine the first time, but when it starts working again, it crashes.</p>
  
  <p>When I looked at the minidump file there were some errors about memory access violation of QtGui4.dll file. Again, this doesn't happen in console mode.</p>
  
  <p>Anyone have any ideas?</p>