Since you cannot debug the program by running it in the
VB IDE, perhaps you could add the ability to write to a log file, and in the area where the problem is occurring, log everything the program does.
That way, you can go back to the code and at least figure out the line that is raising the error.
Once youâve done that, yo can remove most of the logging that you had put in, and add intensive information gathering right around that statement, to get a better idea on any environmental/contextual issues that might be causing trouble.
Or at least you would be able to post here the problematic area of code.