- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm supporting an in-house C++ plugin for Motionbuilder, which worked fine in Mobu 2023. Now I'm trying to recompile it for Motionbuilder 2025. I used a correct SDK, compilation itself turned out fine, but it crashes when I launch plugin related operations. It turns out that I see in our FBModel derivated class:
* DLL declaration is done.
FBLibraryDeclare( myplugin )
{
FBLibraryRegisterStorable( MyModel);
FBLibraryRegisterElement( MyModel );
}
FBLibraryDeclareEnd;
* LibClose and LibRelease are being called when I close Mobu 2025 instance.
But I never see LibInit, LibOpen, nor LibReady are being called, which skips all the variables' initialisation, causes a crash. (While the same code calls LibInit, LibOpen, and LibReady on Mobu 2023 instance startup) I've skimmed through the ORSDK samples but I don't think there's a breaking change. Could somebody please explain what could be missing here?
I tried with the sample entry point literally looks like this and it behaves same:
I do have these in MyModel.cpp
FBClassImplementation( MyModel );
FBStorableCustomModelImplementation( MyModel, MYMODEL__DESCSTR );
FBElementClassImplementation( MyModel, FB_DEFAULT_SDK_ICON );
And I do have this in MyModel.h, inside of MyModel class
FBStorableClassDeclare( MyModel, FBModel );
Solved! Go to Solution.