Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - New and Delete in C++: Page 1 of 3 (3 Items)
   
New and Delete in C++  
hi,

I am using new for memory allocation in c++, after allocating i am properly releasing the memory. For using this i have 
included <new>header file.The code is as below

 	int *p1 ;
 	
 	*p1 = new (nothrow)datCtlMode;
 	if(p1==0)
 		Flag =1;
 	else
 		Flag = 0;
 	delete datCtlMode;

With this procedure i am getting error as Parse error.If anybody have any idea please guide me...