Hi list,

I am working with VB 6.0 and MapBasic,  (I use  Callbacks to Retrieve
Information from MapInfo.)

When I want to use Mapinfo's "Close All" command from VB some cases I get
"Internal error:34623"
If I use Mapinfo "Close" command to close opened layers one-by-one I never
get this error!

I use the command like this:
"MapInfo.runMenuCommand M_FILE_CLOSE_ALL"

The situation is same if I pick up  number of opened layers:
n = MapInfo.Eval("MapperInfo(" & mapWinID & "MAPPER_INFO_LAYERS)")

then I want to close them one-by-one in loop:
For i = n to 1 step -1
    lname = MapInfo.Eval("LayerInfo( WindowID(1)," & i & " ,1)")
    MapInfo.Do "Close Table " & lname
Next i

But if I make slow the loop, e.g. I put a message inside the loop (e.g.
MSGBOX(lname + " closed...")
and after every layer closed program displays the message and continues when
I push OK button, the "internal error" never comes....!

What the problem can be? Please give me any idea what to do, what can be the
reason of this stupid situation and how can I prevent it.

Thank you.
George


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11353

Reply via email to