Home Help Center

"Filesystem demo" runtime error

I am writing the "Filesystem demo" on the user mannul.
It compiled well and linked well but resulted in a runtime error.
When I steped over the code, I found a sentence

Ice::Identity myID = Ice::stringToIdentity( parent ? IceUtil::generateUUID() : "RootDir" );

triggered this debug assertion failure .

It seems that this segment of code in <xstring> caused the assertion failure when calling IceUtil::generateUUID().

~basic_string()
{ // destroy the string
_Tidy(true);
}

I don't know what's that.Anyone can help me?

regards
oops

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    You should always state which version of Ice and Visual C++ you are using. You should also post a full stack trace (you can obtain the stack trace with the Visual C++ debugger).

    I assume you are using Visual C++ 6.0 with STLport? Two reasons typically cause problems:
    • Mixing debug with non-debug libraries. All your libraries and our own code must either be release or debug.
    • You are mixing the STLport library with the built-in STL library, i.e., some of your code does not use STLport, but instead the built-in library.
  • oopsoops Member
    I am using vc71 and ice-1.5.1.
    Do I still need a STLport?
    Yes, I mixxed dubug lib and release one, it's working now.
    Thank you very much.
    Maybe you can write a FAQ list, that will be much helpful for newcomers :)
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    No, you don't need STLport if you use a version newer than Visual C++ 6.0.

    The problem with mixing debug and release really doesn't have much to do with Ice. It's the same problem with any Visual C++ application.
Sign In or Register to comment.