Does MapBasic's note destroy parrented mapinfo applications

56 views
Skip to first unread message

Athanassios Bakalidis

unread,
May 22, 2013, 6:28:10 AM5/22/13
to mapi...@googlegroups.com
Hello everyone
We are developing an integrated mapping application in C#, with a requirement that users may be able to run their own MapBasic applications via our #c# interface.

While developing this we run into the following issue. Suppose that we have an application with a single "hello world" note statement. If we run this the first time, then we are able to see the message click on it and dispose it. If we call it again then the message box appears but there is no way to click on it's ok button. The only to proceed is to kill the .net application. After that the message box is visible and clickable on the screen.

We run applications using the following code:
  _mapInfoApp.Do(String.Format(@"Run Application ""{0}""", applicationFilename));
and we perform the prarenting process during the form initialization, exactly as shown in the MaBasic integrated mapping examples for .NET.

Thanks in advance
Athanassios





Mustafa ÖZÇETiN

unread,
May 23, 2013, 4:12:05 AM5/23/13
to mapi...@googlegroups.com
I faced with a similar problem before and the problem was caused by callbacks. Do you use MapInfo callbacks in the application?

Regards,

Mustafa ÖZÇETiN
Senior Researcher (SCJP)

The Scientific and Technological Council of Turkiye
Ankara / Turkiye

http://mustafaozcetin.wordpress.com/



From: Athanassios Bakalidis <abaka...@gmail.com>
To: mapi...@googlegroups.com
Sent: Wednesday, May 22, 2013 1:28 PM
Subject: [MI-L] Does MapBasic's note destroy parrented mapinfo applications

--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
 
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


Athanassios Bakalidis

unread,
May 23, 2013, 6:27:53 AM5/23/13
to mapi...@googlegroups.com
Mustafa you hit the jackpot!

We disabled the callback processing while the user applications are being executed and everything works fine.

Thanks very much
Athanassios



You received this message because you are subscribed to a topic in the Google Groups "MapInfo-L" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mapinfo-l/c4Dkg1UsyRc/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to mapinfo-l+...@googlegroups.com.

Mustafa ÖZÇETiN

unread,
May 23, 2013, 7:14:58 AM5/23/13
to mapi...@googlegroups.com
Hi Athanassios,

Glad to see that it works. Not sure but it seems to be caused by a deadlock.


Mustafa ÖZÇETiN
Senior Researcher (SCJP)

The Scientific and Technological Council of Turkiye
Ankara / Turkiye

http://mustafaozcetin.wordpress.com/


From: Athanassios Bakalidis <abaka...@gmail.com>
To: mapi...@googlegroups.com
Sent: Thursday, May 23, 2013 1:27 PM
Subject: Re: [MI-L] Does MapBasic's note destroy parrented mapinfo applications
Reply all
Reply to author
Forward
0 new messages