<div class="gmail_quote">2011/2/21 zeljko <span dir="ltr"><<a href="mailto:zeljko@holobit.net">zeljko@holobit.net</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">> IMO the assertions should be made usable in Lazarus code base.<br>
> They are useful and serve a different purpose than exceptions.<br>
> Currently they can't be used with QT bindings at all,<br>
<br>
</div>Because they're not implemented in Qt bindings.<br></blockquote><div><br>That is ok but I was referring to the topic in QT mailing list:<br> "Assertion failure in Search dialog"<br>It means I can't use assertions even in my own code because enabling them breaks the search dialog.<br>
<br>The GTK2 bindings code misuses assertions badly. DebugLn should be used instead there, leaving "Assert" for real assertions.<br>Replace All: "Assert(false," -> "// DebugLn(" could help.<br>
They can be safely commented out because nobody has enabled the assertions either.<br><br>Juha<br><br></div></div>