Ok, some aditional information. When I change from Debug libraries to Release libraries in VS7.1, I don't get the crash. I don't know why I don't get the crash, but that scares me.
I'm learning NX Open in Unigraphics NX 4. Whenever I use a function that returns a vector the plugin crashes when the vector goes out of scope. Some of the code I'm working with is:
for(NXOpen::SketchCollection::iterator i = sketches->begin(); i != sketches->end(); ++i)
{...