A
andrewsharpe
Guest
I kind of misspoke. It is two different assemblies, one writing to the registry and the other creating the OdbcConnection object. So, same application, but different assemblies that aren't coupled. I expect this would be easy for you to reproduce. Just implement the above code and put a breakpoint on the line that instantiates OdbcConnection. When the breakpoint hits, change the Database value in RegEdit and then let the debug session continue. I'm betting your OdbcConnection sometimes doesn't get the new value (check the value of OdbcConnection.Database attribute).
Continue reading...
Continue reading...