PSU-CSAR / vb-bagis-p

VB .NET source code for ArcMap BAGIS Parameters add-in
1 stars 1 forks source link

Global profile/method editor unable to open #32

Closed jdduh closed 8 years ago

jdduh commented 8 years ago

When the user went through multiple updates on their profile/method folder, the xml files in the method/profile folder became "corrupted." As a result, an error message prevents the profile editor or method editor from opening.

image

After reinitialized the global method and profile folders, the issue was resolved. Is there a way to improve the error handling routine of these dialog windows?

lbross commented 8 years ago

For these 'failed to open form' exceptions, I wrap the form initialization subroutine in a try- catch to catch any exceptions. If I don't do this and there is an exception, ArcMap will crash. As we learn what exceptions generally occur, we can code defensively for them. In this case, I changed the code to check and see if the key is already in the Hashtable before it tries to add it. This should prevent this exception from occurring in the future.

lbross commented 8 years ago

Fixed in v1.9.8