How do you test your C++ plugins? Restart 3ds every time?

How do you test your C++ plugins? Restart 3ds every time?

mateusz_s
Enthusiast Enthusiast
650 Views
3 Replies
Message 1 of 4

How do you test your C++ plugins? Restart 3ds every time?

mateusz_s
Enthusiast
Enthusiast

Hi,

Do you restart 3ds max every time you made a change to your code to see effects?

The Plugin Manager can't unload plugin. Do you use external dll unloader like: 

https://forums.autodesk.com/t5/3ds-max-programming/unload-a-max-plugin/m-p/4249692?search-action-id=...

 

Thank you

ms

0 Likes
651 Views
3 Replies
Replies (3)
Message 2 of 4

michaelsonbritt
Advocate
Advocate

Personally, I almost always to reload every time, and offset this by demanding an awesome SSD and a decent system otherwise.  Maybe check email quickly while the splash screen is up.  Usually, my time fixing an issue is outweighed by the time launching 3ds Max ...

However, for very "tweaky" changes, where you need to apply many small adjustments quickly, you can use the "Apply Code Changes" feature of Visual Studio.  Have you tried it?  It requires one change in the C/C++ section of the project properties, set Debug Information Format -> Program Database for Edit and Continue.

Of course, when you only need to tweak one variable, you can simply apply a new value from the watch window.  Sometimes I introduce local variables into the code, adding if() statements or other logic switched off them, so I can play around with control flow without changing the code.  Dunno, I used to be bothered by slow load times back in the day of spinning disks.  Somehow it doesn't bother me anymore.  Nowadays, slow compile times are often more frustrating.

Happy coding,
Michaelson Britt

0 Likes
Message 3 of 4

istan
Advisor
Advisor

google "Edit Continue Visual Studio"..

0 Likes
Message 4 of 4

mateusz_s
Enthusiast
Enthusiast

Thanks I gonna give it a try.. 

I also think about unloading/deleting some of plugins so max could load faster..

0 Likes