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 Tools Display Modes
  12 December 2010
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
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
Society of Digital Artists

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

All times are GMT. The time now is 07:42 AM.

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