help!how to delete an evironment in c++ -
11-09-2005
, 08:21 AM
i wrote the follow codes in the main function with c++:
int main(int argc,char *argv[])
{
DbEnv *dbenv;
dbenv = new DbEnv(0);
delete dbenv;
return 1;
}
when i delete the DbEnv pointor. I got a exception window in vc++ which
say the pointor is not a valid pointor. |