.NET

Reply
*Expert Elite*
dave.wolfe
Posts: 731
Registered: ‎12-04-2009
Message 1 of 4 (219 Views)

TaskDialog Specified Cast not Valid

219 Views, 3 Replies
10-01-2012 11:12 AM

As the other mentioned in the comments sections of the article below, I am getting a specified cast is invalid on the line td.Show(). Does anyone have any ides?  I've tried the blank method, and passing in the main window handle with no success.

 

http://adndevblog.typepad.com/autocad/2012/07/taskdialog-with-progress-bar.html

 

Dave Wolfe
Isaiah 57:15

ECAD, Inc.
Tips and Tricks on our blog: Process Design, from the Outside

A P3D Authorized Reseller
Plant 3d Wish list: https://plant3d.uservoice.com/
Distinguished Mentor
gasty1001
Posts: 582
Registered: ‎04-11-2010
Message 2 of 4 (204 Views)

Re: TaskDialog Specified Cast not Valid

10-01-2012 12:26 PM in reply to: dave.wolfe

Hi,

 

Try passing an owner argument to the call function, like this: td.Show(Application.MainWindow.Handle)

 

Gaston Nunez

*Expert Elite*
dave.wolfe
Posts: 731
Registered: ‎12-04-2009
Message 3 of 4 (202 Views)

Re: TaskDialog Specified Cast not Valid

10-01-2012 12:27 PM in reply to: gasty1001

I tried that.

Dave Wolfe
Isaiah 57:15

ECAD, Inc.
Tips and Tricks on our blog: Process Design, from the Outside

A P3D Authorized Reseller
Plant 3d Wish list: https://plant3d.uservoice.com/
ADN Support Specialist
Balaji_Ram
Posts: 749
Registered: ‎03-21-2011
Message 4 of 4 (133 Views)

Re: TaskDialog Specified Cast not Valid

10-16-2012 06:28 AM in reply to: dave.wolfe

Sorry for the delay.

 

It appears to be an API problem on 64 bit systems. We have brought this to the notice of the engineering team and they will prioritize this request.

 



Balaji
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.