Notifications
Clear all

[Closed] 3ds Max 2012 SDK: Plugin Modifier Crashes Max

Hi everyone,

        I'm trying to learn the SDK but there isn't much info out there on it.
                So I created a  modifier with the plugin wizard inside of Visual Studio 2010. Now after I modified the modifier to do what I want when I put it to an object max just shuts down with any error message. 
               
                 What I found was the the functions of MNMesh are causing max to crash.
               
                 In the ::ModifyObject section of my modifier I have the flowing lines of code:

PolyObject *pobj = (PolyObject *)os->obj;
MNMesh &mnm = pobj->GetMesh();

         [color=DeepSkyBlue]mnm.NewVert(1, 2, 0.5);[/color]// If I remove this line everything runs fine
               
                mm.InvalidateTopologyCache ();
                mm.InvalidateGeomCache ();

I use:
Windows 7 SP1 64Bit
Visual studio 2010 with the Visual C++ Compiler Version 9.0 SP1
3ds Max 2012 64Bit

              Can somebody tell me what I need to do to stop 3ds max from crashing. If it is needed I will post the entire source code and the .dlm file.
           
           Thanks.
1 Reply

bump
I posted this yesterday and a day latter it finally appeared on the forum, but at the bottom.