nobody wrote:
Hi,
I tried qt4.6.0-tp1 library with vlc.git then if vlc's messages dialog is open during the quit process it will crash the libqt4_plugin.dll qt4 module. Knowing that the messages dialog class is using getInstance() style with a per class global variable.
And where it did not cause a crash previously in using qt4.5.2 library.
Messages dialog source cpp file :
MessagesDialog *MessagesDialog::instance = NULL;
Header file :
public:
   static MessagesDialog * getInstance( intf_thread_t *p_intf )
   {
       if( !instance)
           instance = new MessagesDialog( p_intf );
       return instance;
   }
   static void killInstance()
   {
       delete instance;
       instance = NULL;
   }
Can this type of code be the problem? And why did it not previously in qt4.5.2 trigger this issue?

Thanks

Forgot to mention the only time it doesn't trigger this crash is when qt4.6.0-tp1 library is compiled without -qt-style-windowsvista -qt-style-windowsxp

Triggered also when preferences dialog is open which this type of dialog isn't using th getInstance() style. It is been called by PrefsDialog *p = new PrefsDialog( (QWidget *)p_intf->p_sys->p_mi, p_intf );

So am I missing something here?
Activating -qt-style-windowsvista caused this issue
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to