PDA

View Full Version : This action cannot completed the application is not respondi



bgopal
01-03-2006, 02:15 PM
Hi,

I have a VB application that is using MapPoint control on an MDI child form. If I open another form in the modal state on top of this MapPoint form, I get an error
"This action cannot completed because the application is not responding. Choose "Switch To" and correct the problem."
Clicking "Switch To" does not do anything and it is impossible for me to get rid of this error form. I end up killing the whole task.

Any help would be greatly appreciated.

Thank you.[/img]

Wilfried
01-03-2006, 03:12 PM
Hi,

This looks a lot like the 'server busy' error. But I never saw this text. Is our application busy with a lengt job ?

bgopal
01-03-2006, 03:29 PM
You are right. It is a "Server Busy" error.
Any idea why this is happening when another modal form is open on top of the form that contains the MapPoint control?

NewCnd
01-03-2006, 05:50 PM
Hi,
probably you call another form when you're in click, doubleclick (or like these) sub of MapPointControl.

You can use a timer set interval=1 up where you called second form and when timer is triggered you can call second form in the timer trigger sub.
It works...
(dont forget to set interval=0 up in the trigger sub ASAP).


NewCnd

Wilfried
01-04-2006, 01:53 PM
Hi,

You probably call the modal form from within an event of the mappoint control. This is wrong. You have to call it outside the event. The most easy is to post a message to a custom message handler and let the message handler call the modal form. Then the call is outside of the event.

Wilfried
01-04-2006, 01:56 PM
Hi,

What NewCnd is proposing with a timer does in fact the same as my reply. However timers are limited resource so a custom message handler is better.