Hi!

This problem is now fixed in the current BK tree and will OK in 0.8.3.

Below is the modification you need to make MyCC work with Qt 3.04!

+++ mycc/src/CSqlEditor/syntaxhighliter_sql.cpp
@@ +125 @@
SyntaxHighlighter_SQL::SyntaxHighlighter_SQL()
: QTextPreProcessor(), lastFormat( 0 ), lastFormatId( -1 )
{
-  formats.setAutoDelete(true);
+#ifdef WIN32 
+  formats.setAutoDelete(true);  //This avoids a mem-leak under Win32 ?
+#endif
  hasSqlSyntaxHighlighting = false;
  hasDatabaseSyntaxHighlighting = false;
  QIntDictIterator<SqlFormat> it(*g_SqlEditorStyles);
  for ( ; it.current(); ++it )
    if (it.current()->ID != SQLKeyWord::highlight_PARENTHESES_MATCHING)
      addFormat(it.current()->ID, new QTextFormat(it.current()->Font,
it.current()->Color));
}

> -----Original Message-----
> From: Kevin Lester [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, May 17, 2002 2:36 PM
> To: [EMAIL PROTECTED]
> Subject: MyCC problems with qt3.0.4 
> 
> 
>  I'm running a pretty standard install of RedHat 7.2 on a x86 
> machine.  I  compiled MyCC with qt3.0.4 and everything worked 
> well except when I closed  a popup window the program would 
> seg fault.  I re-compiled it using  qt3.0.2 and it works fine 
> now.  You might want to make sure that users  know they must 
> use 3.0.2 if they want it to work properly.  Of course  
> fixing the problem with qt3.0.4 would be nice as well. :)



Regards,
Jorge
--
For technical support contracts, visit https://order.mysql.com/?ref=mjdc
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Jorge del Conde <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Full-Time Developer
/_/  /_/\_, /___/\___\_\___/   Mexico City, Mexico
       <___/   www.mysql.com



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to