Author |
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: April 03 2002 at 22:35 | IP Logged
|
|
|
Well, I just got the latest version, and I can pretty much crash it at will...
Right-click on an existing Macro, select Copy, change it's ID, then, click in the tree pane on the "Copy of..." entry. Boom! In ComCtl32.dll.
This must be due to the ID change not being reflected in the tree at the time I click over on it (that one does not really exist yet).
Let me know if you need the error details.
Thanks,
Tony
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: April 04 2002 at 13:49 | IP Logged
|
|
|
Tony,
Well I duplicated your procedure and while not getting the same type of error you got, did have problems that ultimately ended up in the program crashing. You are correct in that when you change the ID in the right hand pane, the tree is not yet updated when you click on the tree in the left hand pane. What happens is that the right hand pane will update the database and then the tree will update and then you'll try to change to a handle in the tree which does not exist. You will get a similar error if you also delete a row in the right hand pane and then try to change to that row in the left hand tree pane. When the change tries to take place, the deleted row will be removed from the tree and the tree will then try to change to an item that does not exist.
Ive located the relevant code and have solved the problem by first checking to see if a selected treeview item exists before attempting to change to it. The behavior of the control now is that the right hand pane will update the database, the treeview in the left hand pane will be updated to reflect the database, the selected control will be verified for its existance and if it does not exist, then the change will be ignored and no error but the treeview will now reflect the proper ID's accurately. It will be available in the next release.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: April 04 2002 at 22:12 | IP Logged
|
|
|
Thanks, Dave!
Tony
|
Back to Top |
|
|
|
|