Changeset 1335 for trunk/dll/autoview.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/autoview.c

    r1220 r1335  
    2424  30 Dec 07 GKY Use CommaFmtULL
    2525  29 Feb 08 GKY Use xfree where appropriate
     26  10 Dec 08 SHL Integrate exception handler support
    2627
    2728***********************************************************************/
     
    3031#include <string.h>
    3132#include <ctype.h>
    32 #include <process.h>                    // _beginthread
     33// #include <process.h>                 // _beginthread
    3334
    3435#define INCL_DOS
     
    6263#include "commafmt.h"                   // CommaFmtULL
    6364#include "fortify.h"
     65#include "excputil.h"                   // 06 May 08 SHL added
    6466
    6567static BOOL PutComments(HWND hwnd, CHAR * filename, CHAR * comments);
     
    716718
    717719      if (!hwndAutoObj) {
    718         if (_beginthread(MakeAutoWinThread, NULL, 65536, (PVOID) hwnd) == -1) {
    719           Runtime_Error(pszSrcFile, __LINE__,
    720                         GetPString(IDS_COULDNTSTARTTHREADTEXT));
     720        if (xbeginthread(MakeAutoWinThread,
     721                         65536,
     722                         (PVOID)hwnd,
     723                         pszSrcFile,
     724                         __LINE__) == -1) {
    721725          PostMsg(hwnd, UM_CLOSE, MPVOID, MPVOID);
    722726        }
Note: See TracChangeset for help on using the changeset viewer.