addDefine causes unhandled exception

Help
lorenzo
2003-01-07
2003-01-07
  • lorenzo
    lorenzo
    2003-01-07

    this is  a code sample that causes unhanled exception:

    int main(int argc, char* argv[])
    {
    JVM::addDefine("user.home","D:\\Sviluppo\\lucentTest");
    JVM::load();
    JVM::unload();
    return 0;
    }

    load method is succesfull as well as unload,
    somewhere after exiting main there is an unhandled exception(it seems to be caused by the desctructor of a std::string)

    I'm using vc6, Am I doing something wrong or missing something??

    Thanks