Changeset 84 for psi/trunk/src/main.cpp


Ignore:
Timestamp:
Dec 3, 2006, 6:45:43 PM (19 years ago)
Author:
dmik
Message:

Psi: Added installation of the OS/2 System Exception handler (QtOS2SysXcptHandler) on the main thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • psi/trunk/src/main.cpp

    r2 r84  
    3434#include<qmessagebox.h>
    3535#include<qca.h>
     36
     37#if defined(Q_OS_OS2) && !defined(QT_OS2_NO_SYSEXCEPTIONS)
     38#include <qt_os2.h>
     39extern // defined in common.cpp
     40int psiOS2SysXcptCallback( QtOS2SysXcptReq req, QtOS2SysXcptWriter writer,
     41                                                   int /* reserved */ );
     42#endif
     43
     44
    3645#include<stdlib.h>
    3746#include<time.h>
     47
    3848#include"common.h"
    3949#include"profiles.h"
     
    337347int main(int argc, char *argv[])
    338348{
     349#if defined(Q_OS_OS2) && !defined(QT_OS2_NO_SYSEXCEPTIONS)
     350        // install the OS/2 system exception handler and callback
     351    QtOS2SysXcptMainHandler sysXcptHandler( psiOS2SysXcptCallback );
     352#endif
     353
    339354        // add library paths before creating QApplication
    340355        if (!loadGlobal())
Note: See TracChangeset for help on using the changeset viewer.