Menu

Unhandled Exception by IFXRELEASE(pAuthorClod

gejza01
2006-10-06
2013-05-28
  • gejza01

    gejza01 - 2006-10-06

    Hi,

    i have a "little" problem, i try to load some bigger model to u3d format. Sometimes it's look absolutly perfect, but sometimes i get an unhandled exception if i want to call: IFXRELEASE(pAuthorClodMesh)

    It's looks like this error is independent from the number of vertexes.
    Maybe the error can occures, if i have an object with a closed hole inside? (Like a ball, air inside)

    I tried to Unlock before this pointer release, and i get the result: 0x81010002
    I searched this value in the doc, but i didn't found any info from that.

    The code looks like this:
        result = pAuthorClodMesh->Unlock();
        if (IFXSUCCESS(result))
        {
            IFXRELEASE(pAuthorClodMesh)
        }

    I know, normally i don't need the Unlock, but i want to find the bug. :-)

    Maybe you have some idea, why i get this error?

    Thanx a lot

     
    • Anonymous

      Anonymous - 2006-10-09

      Hello,

      Information about return codes can be found in IFXResult.h and IFXResultComponentEngine.h files.

      According to these files the 0x81010002 error code can be interpreted as failure in the IFXRESULT_COMPONENT_AUTHORGEOM subsystem. Searching for this subsystem enumerator you can find the corresponding IFX_E_AUTHOR_MESH_NOT_LOCKED error code in IFXAuthorMesh.h file.

      It means that you should call Lock() before calling Unlock() for IFXAuthorMesh (I assume that pAuthorClodMesh is a pointer to IFXAuthorMesh interface).

      An example of how to work with IFXAuthorMesh interface can be found in the IDTFConverter project. Look at the MeshConverter.cpp file for MeshConverter::ConvertMesh() method.

      Maxim

       

Log in to post a comment.