assertion failed FbxMalloc used before its initialization

assertion failed FbxMalloc used before its initialization

Anonymous
Not applicable
669 Views
2 Replies
Message 1 of 3

assertion failed FbxMalloc used before its initialization

Anonymous
Not applicable

Hi all,

 

i have a fbx importer (2014.1) compiled as a noentry dll that exposes a function.

 

when this function is called, it calls FbxManager::Create that produces the above error.

 

how do i solve this issue?

 

is there a manner to quicly initialize FbxMalloc?

 

thank you for your time

 

 

0 Likes
670 Views
2 Replies
Replies (2)
Message 2 of 3

regalir
Autodesk
Autodesk

Hi,

 

you are getting the assert because the FbxMallocHandler has not been set yet (it is a static variable so, clearly the dll has not got the chance to initialize the static variables before you make the call to FbxMalloc(). You can try to manually define your own malloc function using the FbxMallocProc signature (most likely it will be a simple function return malloc()) and call the FbxSetMallocHandler(...) first thing before any calls to the FBX SDK functions.

0 Likes
Message 3 of 3

Anonymous
Not applicable

hallo, 

 

thank you for you answer, i solved the issue removing the /NOENTRY flag and putting a DLLMain.

 

0 Likes