I have managed to solve this problem myself. This is the problem/solution:
Problem:
I have created a MapInfo object within a VB app. This was done using the
"GetObject" method in order to control an already running instance of
MapInfo. When I set the object to nothing and close my VB app I have
problems with MapInfo not displaying windows/dialogs. All that happens is
an error from MapInfo saying "Unknown error occurred"
Solution:
What is happening is my VB app has closed, but MapInfo is still trying to
send windows/dialogs to it - hence the unknown error. The solution
therefore is to give control of child windows back to MapInfo. This is done
by issuing "Set Application Window 0" - this sets MapInfo to its default
setting, i.e.: MapInfo has control of windows/dialogs. This command should
be issued before setting your mi object to nothing, or it can be issued from
your mbx program if you launch the VB app from there.... so long as you
issue the command!!
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.