[Ekiga-devel-list] patch for ptlib



patch for a more robust ptlib


see my notes here :
http://wiki.ekiga.org/index.php/User:H4ck3rm1k3#crash


ekiga/ptlib$ svn diff
Index: src/ptlib/unix/channel.cxx
===================================================================
--- src/ptlib/unix/channel.cxx	(Revision 22314)
+++ src/ptlib/unix/channel.cxx	(Arbeitskopie)
@@ -104,9 +104,21 @@
         break;

       case PXReadBlock :
-        PAssert(px_readThread == NULL || px_lastBlockType != PXReadBlock,
-                psprintf("Attempt to do simultaneous reads from
multiple threads:"
-                         " os_handle=%i, thread ID=%X", os_handle,
px_readThread->GetThreadId()));
+
+	if (px_readThread)
+	  {
+	    PAssert(px_readThread == NULL || px_lastBlockType != PXReadBlock,
+		    psprintf("Attempt to do simultaneous reads from multiple threads:"
+			     " os_handle=%i, thread ID=%X", os_handle,
px_readThread->GetThreadId()));
+	  }
+	else
+	  {
+	    PAssert(px_readThread == NULL || px_lastBlockType != PXReadBlock,
+		    psprintf("Attempt to do simultaneous reads from multiple threads:"
+			     " os_handle=%i, thread ID=NULL", os_handle));
+
+	  }
+	
         // Fall into default case

       default :


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]