Dotnet Assembly Error on Second Load

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  06 June 2013
Dotnet Assembly Error on Second Load

This time I try to load willson explorer tree view


ThisScript=getSourceFileName() 
thePath=getFilenamePath ThisScript
dotnet.loadAssembly (thePath+"WilsonProgramming.dll")

aa=dotnetObject "WilsonProgramming.ExplorerTreeViewWND"
--showmethods aa
--dotNet.showConstructors aa

TreeRoot = dotnetobject "WilsonProgramming.ShellItem" --->when load the first time its OK 
---> 


When I try to load it secondly it throwing this error code : -- Runtime error: dotNet runtime exception: The Desktop shell item already exists so cannot be created again. Is there way to prevent those error ?
btw Im using mxs rolloout tho.....

Many Thanks
Attached Files
File Type: zip WilsonProgramming.zip (7.1 KB, 1 views)
 
  06 June 2013
Originally Posted by fajar: This time I try to load willson explorer tree view

When I try to load it secondly it throwing this error code : -- Runtime error: dotNet runtime exception: The Desktop shell item already exists so cannot be created again. Is there way to prevent those error ?

ask this question to Willson... who can fix bugs in his control better than he?
 
  06 June 2013
dont need Mr.Denis....i got it now,...just try using try (....) catch (getCurrentException()) (Damn I forgot this try catch thing fool me )...altho not really good but working great. But Maybe I will submit it tho....cyeee.....
 
  06 June 2013
but you are not solving the problem, you are merely hiding it.
__________________
Regards,
Pete

Read my technical blog - lonerobot.net
 
  06 June 2013
Yes but I found new ways....using gravey and denisT methods about how loading dynamic assembly , thanks to that now I can move on. Thanks denisT and Gravey
 
  06 June 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 10:31 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.