This does in fact send events to the self.OnFSEvent() method at the
appropriate times. Unfortunately for me, I can't do anything with the
information; the event passed is of the wx.Event type, when I was
expecting a wx.FileSystemWatcherEvent!
Is there any way to cast the wx.Event to wx.FileSystemWatcherEvent,
derive a wx.FileSystemWatcherEvent from the wx.Event, or change what
gets sent to my handler? I'm at a loss as to how to solve this.
There is definitely a bug there. It wasn't caused by the usual suspects so I'll have to dig a little deeper and find out what is causing it to not send the right type of object to the event handler.
This does in fact send events to the self.OnFSEvent() method at the
appropriate times. Unfortunately for me, I can't do anything with the
information; the event passed is of the wx.Event type, when I was
expecting a wx.FileSystemWatcherEvent!
Is there any way to cast the wx.Event to wx.FileSystemWatcherEvent,
derive a wx.FileSystemWatcherEvent from the wx.Event, or change what
gets sent to my handler? I'm at a loss as to how to solve this.
There is definitely a bug there. It wasn't caused by the usual suspects
so I'll have to dig a little deeper and find out what is causing it to
not send the right type of object to the event handler.
Well I'm not sure what may have changed in the meantime that may have fixed it, but when I tried duplicating this problem again tonight so I could investigate it further it did the proper thing and sent me wx.FileSystemWatcherEvents. Please try again with the next snapshot build and see if it is working for you too.
I just downloaded the latest snapshot build and it seems to be working for me as well. I wonder if this has anything to do with the RTTI being patched into the wxWidgets trunk? wxTrac has been migrated to GitHub Issues - wxWidgets
···
On Tuesday, June 4, 2013 3:40:10 AM UTC-4, Robin Dunn wrote:
Robin Dunn wrote:
Well I’m not sure what may have changed in the meantime that may have
fixed it, but when I tried duplicating this problem again tonight so I
could investigate it further it did the proper thing and sent me
wx.FileSystemWatcherEvents. Please try again with the next snapshot
build and see if it is working for you too.
I just downloaded the latest snapshot build and it seems to be working
for me as well. I wonder if this has anything to do with the RTTI being
patched into the wxWidgets trunk? wxTrac has been migrated to GitHub Issues - wxWidgets
This is so weird. I have no recollection of making that change. I must have been sleep-coding or something. The presence of those DYNAMIC_CLASS lines is what had me confused and thinking that something serious was wrong, before because their absence is the usual cause of this problem.
Maybe I really did use the time-machine this time, but I haven't done it yet.