Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Since 2.04 EDBCommand.OnLogMessage and OnStatusMessage not working?
Tue, Dec 14 2010 8:32 AMPermanent Link

Hedley Muscroft

Hi,

Since upgrading to 2.04 b4 (from 2.03 b23) I’ve noticed that the events :-
EDBCommand.OnLogMessage and EDBCommand.OnStatusMessage
...no longer seem to fire?

Here’s my code snippet...

using (EDBCommand cmd = new EDBCommand())
{
 cmd.Connection = MyConnection;
 cmd.OnLogMessage += new EDBLogMessageEvent(cmdRepair_OnLogMessage);
 cmd.OnStatusMessage += new EDBStatusMessageEvent(cmdRepair_OnLogMessage);
 cmd.CommandText = "repair table some_table";
 try { cmd.ExecuteNonQuery(); }
 catch (Exception E)

This event logs the messages :-

   void cmdRepair_OnLogMessage(object Sender, EDBMessageEventArgs e)
   {
     string s = e.Message + Environment.NewLine;
     if (e.Message.EndsWith("..."))
       s = Environment.NewLine + s;
     File.AppendAllText(m_repairLogFile, s);
   }

This all used to work fine and the users had a nice log file showing them the results of the REPAIR TABLE operation. Since upgrading, the log file is empty and on break-pointing the code, I can see that OnLogMessage and OnStatusMessage are never being triggered.

Have I missed something or is this a bug? Thanks!

Kind Regards,

Hedley Muscroft
Wed, Dec 15 2010 3:56 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Hedley,

<< Since upgrading to 2.04 b4 (from 2.03 b23) I’ve noticed that the events
:- EDBCommand.OnLogMessage and EBCommand.OnStatusMessage
..no longer seem to fire? >>

Per email: still verifying for 2.05, and if an issue, will be fixed as part
of that release.

--
Tim Young
Elevate Software
www.elevatesoft.com


Image