Ignore:
Timestamp:
Mar 5, 2014 6:48:59 AM (8 years ago)
Author:
riza
Message:

Re #1704:

  • Fix duplicate code on os_winphone.h
  • Change the use of PJ_WIN32_WINPHONE to follow the code convention
  • Fix incorrect link of the Thread library
  • Handle exception raised from select() API. However the break window will still be shown when debugging on Visual Studio. To disable it, from Debug>Exceptions>Win32 Exceptions> unmark the "An invalid handle was specified” exception.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/winphone/pjlib/src/pj/ioqueue_select.c

    r4537 r4777  
    880880    pj_lock_release(ioqueue->lock); 
    881881 
     882#if defined(PJ_WIN32_WINPHONE) && PJ_WIN32_WINPHONE 
     883    count = 0; 
     884    __try {     
     885#endif 
     886 
    882887    count = pj_sock_select(ioqueue->nfds+1, &rfdset, &wfdset, &xfdset,  
    883888                           timeout); 
     889 
     890#if defined(PJ_WIN32_WINPHONE) && PJ_WIN32_WINPHONE 
     891    /* Ignore Invalid Handle Exception raised by select().*/ 
     892    } __except(GetExceptionCode() == STATUS_INVALID_HANDLE? 
     893               EXCEPTION_CONTINUE_EXECUTION:EXCEPTION_CONTINUE_SEARCH) { 
     894    } 
     895#endif 
    884896     
    885897    if (count == 0) 
Note: See TracChangeset for help on using the changeset viewer.