Jas,
I'm not sure if its important, but are you reparenting the MapInfo windows
to your VB form (e.g. MIObject.Do "set application window " & Me.hwnd) - if
MI is poping up a 'save edits' dialog when you issue the close all, this
might have a bearing.
Richard Burkmar.
-----Original Message-----
From: Brad Mathews [mailto:[EMAIL PROTECTED]]
Sent: 06 September 2000 18:12
To: [EMAIL PROTECTED]
Subject: RE: MI and Visual Basic
Using "Close All" will close all tables and discard any changes made. No
dialog box will be displayed. "Close All Interactive" will show any dialog
boxes.
I have been trying to figure this one out for you, but I haven't come up
with an answer. After closing all tables I always 'Set MapInfo = Nothing'
and then re-instantiate Mapinfo, though I was doing this for other reasons -
Mapinfo used to (and may still) have memory leak problems and this solved
it.
- Brad
> -----Original Message-----
> From: peterelphick [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, September 05, 2000 1:13 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: MI and Visual Basic
>
> Sometimes in Inegrated mapping applications the whole thing locks because
> MI
> is trying to display
> a dialogue box. If any of your tables had been edited, Mi would try to
> display a dialogue to warn you
> that your changes have not been saved. Otherwise there is no reason why
> you
> should not be able to open
> any other tables.
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 05, 2000 12:40 PM
> Subject: MI and Visual Basic
>
>
> > I am writing a Visual Basic application for MapInfo. I am trying to
> close
> > any MapInfo tables which have been opened while at the same time keeping
> my
> > connection to MapInfo established. I am using the following code
> >
> > mapinfo.Do "Close All "
> >
> > All previously open tables are closed but after this I am no longer able
> to
> > open any more tables. I have ytried re-establishing a MapInfo connect
> but
> > nothing seems to work. Anyone have a suggestion?
> >
> > jas
> > ----------------------------------------------------------------------
> > To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> > "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
>
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]