dbTalk Databases Forums  

help!how to delete an evironment in c++

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss help!how to delete an evironment in c++ in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
demon_32@163.com
 
Posts: n/a

Default 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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.