Changeset 1335 for trunk/dll/mainwnd2.c


Ignore:
Timestamp:
Dec 13, 2008, 12:49:02 AM (17 years ago)
Author:
Steven Levine
Message:

Ticket 26: Add exception handlers to all threads using xbeginthread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd2.c

    r1224 r1335  
    2626  27 Aug 08 JBS Ticket 259: Support saving/restoring toolbars with states
    2727  01 Sep 08 GKY Add bmps for default toolbars
     28  10 Dec 08 SHL Integrate exception handler support
    2829
    2930***********************************************************************/
     
    3233#include <string.h>
    3334#include <share.h>
    34 #include <process.h>                    // _beginthread
     35// #include <process.h>                 // _beginthread
    3536
    3637#define INCL_DOS
     
    6061                                        // SetSysMenu
    6162#include "mainwnd.h"                    // CloseChildren, MainWMCommand, MakeMainObjWin, ResizeDrives
    62                                         // TopWindow
     63                                // TopWindow
    6364#include "common.h"                     // CommonCreateMainChildren, CommonMainWndProc
    6465#include "notify.h"                     // HideNote
     
    7576#include "wrappers.h"                   // xfree
    7677#include "fortify.h"
     78#include "excputil.h"                   // xbeginthread
    7779
    7880typedef struct
     
    771773    WinSetWindowUShort(hwnd, QWL_USER + 12, 0);
    772774    WinSetWindowUShort(hwnd, QWL_USER + 16, 0);
    773     if (_beginthread(MakeMainObjWin, NULL, 245760, MPVOID) == -1) {
    774       Runtime_Error(pszSrcFile, __LINE__,
    775                     GetPString(IDS_COULDNTSTARTTHREADTEXT));
     775    if (xbeginthread(MakeMainObjWin,
     776                     245760,
     777                     MPVOID,
     778                     pszSrcFile,
     779                     __LINE__) == -1)
     780    {
    776781      PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID);
    777782      return 0;
Note: See TracChangeset for help on using the changeset viewer.