<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
<META content=1 name=qrichtext>
<STYLE type=text/css>
p, li { white-space: pre-wrap; }
</STYLE>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY
style="FONT-WEIGHT: 400; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-FAMILY: 'Liberation Sans'">
<DIV><FONT face="'Liberation Sans'"></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left><FONT
face=Tahoma>-----Message d'origine-----<BR><B>De :</B> zeljko
[mailto:zeljko@holobit.net] <BR><B>Envoyé :</B> mardi 31 janvier 2012
10:48<BR><B>À :</B> Lazarus mailing list<BR><B>Objet :</B> Re:
[Lazarus] Issue 21129, hang on glib2 2.31<BR><BR></FONT></DIV>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">On
Tuesday 31 of January 2012 10:23:01 Ludo Brands wrote:</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">>
Hi,</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">>
</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">>
the issue is read-only now, so I comment here.</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">>
</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">>
The patch commited leaves USE_GTK_MAIN_OLD_ITERATION as before, using</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">>
gdk_threads_init. It would be useful to note somewhere in the sources</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">>
(gtk2defines.inc?) that USE_GTK_MAIN_OLD_ITERATION causes hangs when used</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">>
with glib2 2.31. USE_GTK_MAIN_OLD_ITERATION is only used with non-Unix</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">>
systems but the day 2.31 or + is ported to windows we probably all forgot.</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0; -qt-paragraph-type: empty"><BR></P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">I've
understood that USE_GTK_MAIN_OLD_ITERATION works fine with glib2 2.31 ... so
if it isn't case then I have to check glib2 version with this define and use
it for glib2 > 2.30 ... or it does not matter ?</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">Anyone
tested with -dUSE_GTK_MAIN_OLD_ITERATION and glib2 >= 2.31 ?</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0; -qt-paragraph-type: empty"><BR></P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0">zeljko</P>
<P
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0; -qt-paragraph-type: empty"><BR></P></BLOCKQUOTE>
<P dir=ltr
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0; -qt-paragraph-type: empty"><SPAN
class=968550713-31012012><FONT face="'Liberation Sans'">My first tests were with
USE_GTK_MAIN_OLD_ITERATION defined. See note <A id=bugnotes name=bugnotes><SPAN
class=small>0056091</SPAN></A> in issue 21129. Lazarus started fine but
hung when the debugger returned. </FONT></SPAN></P>
<P dir=ltr
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0; -qt-paragraph-type: empty"><SPAN
class=968550713-31012012><FONT face="'Liberation Sans'">I think the main
question is whether the thread support on windows will ever be the same as
for linux. We'll probably have to wait until 2.31 is ported to
windows. </FONT></SPAN></P>
<P dir=ltr
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0; -qt-paragraph-type: empty"><SPAN
class=968550713-31012012><FONT face="'Liberation Sans'"></FONT></SPAN> </P>
<P dir=ltr
style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-user-state: 0; -qt-paragraph-type: empty"><SPAN
class=968550713-31012012>Ludo </SPAN></P></BODY></HTML>