﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>CapableObjects forum » ECO » General discussions  » Bug in DroopyEyes.EcoExtensions.WinForm.DirtyObjectCatcher</title><generator>InstantForum.NET 2012-1</generator><description>CapableObjects forum</description><link>http://www.capableobjects.com/apps/InstantForum414/</link><webMaster>CapableObjects forum</webMaster><lastBuildDate>Fri, 18 May 2012 04:21:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Bug in DroopyEyes.EcoExtensions.WinForm.DirtyObjectCatcher</title><link>http://www.capableobjects.com/apps/InstantForum414/FindPost5178.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I am using a DirtyObjectCatcher in my Eco 5 Winforms application.&lt;br&gt;&lt;br&gt;This has been working well for some time.  Now when specific actions are performed I get a Null reference exception  in the DirtyObjectCatcher.SubscribeToUndoblock method:&lt;br&gt;&lt;br&gt;private void SubscribeToUndoblock()&lt;br&gt;{&lt;br&gt;    IUndoBlock block = this.UndoService.UndoList[this.UndoBlockName];&lt;br&gt;    if (block != null)&lt;br&gt;    {&lt;br&gt;        block.Subscribe(this.Subscriber.AsISubscriber());&lt;br&gt;    }&lt;br&gt;}&lt;br&gt;&lt;br&gt;The Null reference is caused by this.UndoService returning null;&lt;br&gt;&lt;br&gt;SubscribeToUndoblock is called by private void CheckDirtyListChanged(object sender, EventArgs e) which is attached to the Application.Idle event here in DirtyObjectCatcher.&lt;br&gt;&lt;br&gt;    private void Subscriber_Receive(object sender, EventArgs e)&lt;br&gt;    {&lt;br&gt;      Application.Idle += new EventHandler(this.CheckDirtyListChanged);&lt;br&gt;    }&lt;br&gt;&lt;br&gt;&lt;br&gt;Is there any chance of a fix to this problem?  &lt;br&gt;A suggested work around?&lt;br&gt;The source to DroopyEyes.EcoExtensions.WinForm.dll?  &lt;br&gt;&lt;br&gt;This is a showstopper for me and my client!! &lt;br&gt;&lt;br&gt;Regards AndyB&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 16 May 2010 23:38:45 GMT</pubDate><dc:creator>AndyB</dc:creator></item><item><title>RE: Bug in DroopyEyes.EcoExtensions.WinForm.DirtyObjectCatcher</title><link>http://www.capableobjects.com/apps/InstantForum414/FindPost5223.aspx</link><description>http://pastebin.com/sRPGpAUF&lt;br&gt;&lt;br&gt;:-)</description><pubDate>Sun, 16 May 2010 23:38:45 GMT</pubDate><dc:creator>Peter Morris</dc:creator></item><item><title>RE: Bug in DroopyEyes.EcoExtensions.WinForm.DirtyObjectCatcher</title><link>http://www.capableobjects.com/apps/InstantForum414/FindPost5222.aspx</link><description>Hi Pete,&lt;br&gt;&lt;br&gt;  Send me this update too;&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Sun, 16 May 2010 18:40:20 GMT</pubDate><dc:creator>Massaru</dc:creator></item><item><title>RE: Bug in DroopyEyes.EcoExtensions.WinForm.DirtyObjectCatcher</title><link>http://www.capableobjects.com/apps/InstantForum414/FindPost5189.aspx</link><description>Email sent.</description><pubDate>Thu, 06 May 2010 14:11:38 GMT</pubDate><dc:creator>Peter Morris</dc:creator></item><item><title>RE: Bug in DroopyEyes.EcoExtensions.WinForm.DirtyObjectCatcher</title><link>http://www.capableobjects.com/apps/InstantForum414/FindPost5186.aspx</link><description>Hi Pete,&lt;br&gt;&lt;br&gt;Thank you very much for your response.  Really appreciated.&lt;br&gt;&lt;br&gt;I would love to be able to demonstrate this problem in a test case but it seems pretty obscure and the budget for this project is already spent!!&lt;br&gt;&lt;br&gt;Tracing the problem indicates that the Application.Idle event is raised after the call to DirtyObjectCatcher.Dispose and the DirtyObjectCatcher instance CheckDirtyListChanged method is still subscribed to this event. &lt;br&gt;&lt;br&gt;This would explain why the DirtyObjectCatcher.ServiceProvider reference is null.  &lt;br&gt;&lt;br&gt;I may be doing something dumb elsewhere to cause the problem but if you add: &lt;br&gt;&lt;br&gt;Application.Idle -= new EventHandler(this.CheckDirtyListChanged)&lt;br&gt;&lt;br&gt;to the DirtyObjectCatcher.Dispose() the problem may just go away.&lt;br&gt;&lt;br&gt;I am in New Zealand and 12 hours out of synch with your time zone so may take time to respond.&lt;br&gt;&lt;br&gt;Once again - thanks for the help.&lt;br&gt;&lt;br&gt;Best regards&lt;br&gt;&lt;br&gt;Andy</description><pubDate>Mon, 03 May 2010 04:46:31 GMT</pubDate><dc:creator>AndyB</dc:creator></item><item><title>RE: Bug in DroopyEyes.EcoExtensions.WinForm.DirtyObjectCatcher</title><link>http://www.capableobjects.com/apps/InstantForum414/FindPost5183.aspx</link><description>[quote][b]AndyB (2010-04-30)[/b][hr]Hi,&lt;br&gt;&lt;br&gt;I am using a DirtyObjectCatcher in my Eco 5 Winforms application.&lt;br&gt;&lt;br&gt;This has been working well for some time.  Now when specific actions are performed I get a Null reference exception  in the DirtyObjectCatcher.SubscribeToUndoblock method:&lt;br&gt;&lt;br&gt;private void SubscribeToUndoblock()&lt;br&gt;{&lt;br&gt;    IUndoBlock block = this.UndoService.UndoList[this.UndoBlockName];&lt;br&gt;    if (block != null)&lt;br&gt;    {&lt;br&gt;        block.Subscribe(this.Subscriber.AsISubscriber());&lt;br&gt;    }&lt;br&gt;}&lt;br&gt;&lt;br&gt;The Null reference is caused by this.UndoService returning null;&lt;br&gt;&lt;br&gt;SubscribeToUndoblock is called by private void CheckDirtyListChanged(object sender, EventArgs e) which is attached to the Application.Idle event here in DirtyObjectCatcher.&lt;br&gt;&lt;br&gt;    private void Subscriber_Receive(object sender, EventArgs e)&lt;br&gt;    {&lt;br&gt;      Application.Idle += new EventHandler(this.CheckDirtyListChanged);&lt;br&gt;    }&lt;br&gt;&lt;br&gt;&lt;br&gt;Is there any chance of a fix to this problem?  &lt;br&gt;A suggested work around?&lt;br&gt;The source to DroopyEyes.EcoExtensions.WinForm.dll?  &lt;br&gt;&lt;br&gt;This is a showstopper for me and my client!! &lt;br&gt;&lt;br&gt;Regards AndyB&lt;br&gt;&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;Can you provide a test case + instructions on how to reproduce?  If so I will fix it.</description><pubDate>Fri, 30 Apr 2010 20:22:28 GMT</pubDate><dc:creator>Peter Morris</dc:creator></item></channel></rss>
