i currently am throwing an exception in my constructor of my class and i read that when u do such a thing, the objects destructor is never called! meaning if i allocate any memory without using the heap, i have to MANUALLY deallocate the memory myself. An article i read stated using "resource allocation is initialization" can be used to solve this problem and is a must. I'm curious if anyone could give an example or any more usefull information on this topic! it's hard for me to understand and i'm not sure if i'm understanding it fully! -thx
lochnessmonster 0 Junior Poster
vijayan121 1,152 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.