ManagedService, how to disable when not running in 3dsmax.

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
Old 12 December 2010   #1
ManagedService, how to disable when not running in 3dsmax.

Hi, i am creating a tool for 3dsmax with C#
To communicate with max, i use ManagedService.dll

For example when i click on a button this code shows a message in max :
MaxscriptSDK.ExecuteMaxscriptCommand("format \"Hello Max!\n\"");

This works fine when i use my tool used inside Max.
But when i launch my tool outside Max and i click on that button i get an error :
"An unhandled exception of type 'System.IO.FileNotFoundException' occurred in PresentationCore.dll"

My Question is :
How can i detect that my tool is currently inside Max ?
I tryed to use Try()Catch() but that throw also the error.

Thank you very much
 
Old 12 December 2010   #2
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.
 
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 09:03 AM.


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