.NET

Reply
Contributor
16 Posts
0 Kudos
Registered: ‎08-07-2006
Post 1 of 13

exception: application busy

150 Views, 12 Replies
08-07-2006 04:21 AM
I created a brackground thread in VB.net. Inside the thread I open dwg files, insert text, close them. The number of the file is more than 1000.

If single-drawing compatibility =true, there is an exception ,application is busy, thrown out randomly.
I wonder what is the reason for that and how to avoid it?

Thanks
Contributor
16 Posts
0 Kudos
Registered: ‎08-07-2006
Post 2 of 13

Re: exception: application busy

08-09-2006 01:44 AM in reply to: clear_zero
Anyone has any idea
*Alexander Rivilis
Post 3 of 13

Re: exception: application busy

08-10-2006 07:32 AM in reply to: clear_zero
Hi, clear_zero!
Application busy exception is thrown if AutoCAD execute any command.
You have to wait ending of command or cancel it.
Best Regards,
Alexander Rivilis.
Contributor
16 Posts
0 Kudos
Registered: ‎08-07-2006
Post 4 of 13

Re: exception: application busy

08-14-2006 01:45 AM in reply to: clear_zero
Thanks for your reply Alex
if I would like to cancel it? what code I should write?
The exception which AutoCAD trown, is there any differnce between autoCAD messagebox (like do you want to save) and long time running command?

Thanks
Distinguished Contributor
303 Posts
1 Kudo
Registered: ‎09-26-2004
Post 5 of 13

Re: exception: application busy

08-15-2006 09:34 AM in reply to: clear_zero
http://through-the-interface.typepad.com/through_the_interface/2006/08/cancelling_an_a.html
Contributor
16 Posts
0 Kudos
Registered: ‎08-07-2006
Post 6 of 13

Re: exception: application busy

08-16-2006 04:30 AM in reply to: clear_zero
I try to use sendcommand to cancel the current command
acadapp.Application.ActiveDocument.SendCommand("???")

what i should put inside of the function?

thanks
Distinguished Contributor
303 Posts
1 Kudo
Registered: ‎09-26-2004
Post 7 of 13

Re: exception: application busy

08-16-2006 04:36 AM in reply to: clear_zero
"\x1B\x1B"
P.S.: I think better solution is wait for little time after "application busy" and try again.

Message was edited by: Alexander Rivilis
Contributor
16 Posts
0 Kudos
Registered: ‎08-07-2006
Post 8 of 13

Re: exception: application busy

08-18-2006 02:03 AM in reply to: clear_zero
The exception which AutoCAD trown, is there any differnce between autoCAD messagebox (like do you want to save) and long time running command?

Thanks
Distinguished Contributor
303 Posts
1 Kudo
Registered: ‎09-26-2004
Post 9 of 13

Re: exception: application busy

08-18-2006 02:07 AM in reply to: clear_zero
Sorry, but I can not not understand your's question. :smileysad:
Contributor
16 Posts
0 Kudos
Registered: ‎08-07-2006
Post 10 of 13

Re: exception: application busy

08-18-2006 02:13 AM in reply to: clear_zero
I there in some case AutoCAD will popup a message box such as "would you like to save the file"
In VB.net I will receive a exception "the application is busy"

How can I catch the messagebox and send command from VB.net to say yes or no

erm..
If I use AutoCAD i can see the messagebox and press button to say yes or no

In VB.net which way I can do the same thing
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!