[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:

| Angus Leeming <[EMAIL PROTECTED]> writes:
>
| | Juergen Spitzmueller wrote:
>>
>>> Angus Leeming wrote:
>>>> Lars has checked stuff in recently related to i/o. Try reverting his
>>>> changes and see if you still crash.
>>> 
>>> I have reverted to 2004-07-20 and both crashes have disappeared. So it
>>> seems like Lars' changes have introduced the crashes.
>>
| | Maybe you can help him debug the problem by ascertaining whether it is the
| | commit of 21 or 22 July that causes the crash?
>
| This look like something that should be easy to fix... otoh I thought
| that I did not change any bahaviour...

Caused by creating a reference to a not yet created object.

Fixed by this patch. Please test.

Index: src/lyxserver.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxserver.C,v
retrieving revision 1.57
diff -u -p -r1.57 lyxserver.C
--- src/lyxserver.C	22 Jul 2004 13:44:39 -0000	1.57
+++ src/lyxserver.C	23 Jul 2004 17:30:47 -0000
@@ -207,7 +207,7 @@ int LyXComm::startPipe(string const & fi
 	}
 
 	if (!write) {
-		lyx_gui::register_socket_callback(fd, boost::bind(&LyXComm::read_ready, *this));
+		lyx_gui::register_socket_callback(fd, boost::bind(&LyXComm::read_ready, this));
 	}
 
 	return fd;
Index: src/lyxsocket.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxsocket.C,v
retrieving revision 1.5
diff -u -p -r1.5 lyxsocket.C
--- src/lyxsocket.C	21 Jul 2004 19:03:20 -0000	1.5
+++ src/lyxsocket.C	23 Jul 2004 17:30:47 -0000
@@ -56,7 +56,7 @@ LyXServerSocket::LyXServerSocket(LyXFunc
 
 	lyx_gui::register_socket_callback(
 		fd_,
-		boost::bind(&LyXServerSocket::serverCallback, *this)
+		boost::bind(&LyXServerSocket::serverCallback, this)
 		);
 
 	lyxerr[Debug::LYXSERVER] << "lyx: New server socket "
@@ -103,7 +103,7 @@ void LyXServerSocket::serverCallback()
 	lyx_gui::register_socket_callback(
 		client_fd,
 		boost::bind(&LyXServerSocket::dataCallback,
-			    *this, client_fd)
+			    this, client_fd)
 		);
 }
 
-- 
        Lgb

Reply via email to