"Jari" <ja*******@yahoo.co.ukwrote in message
crack wrote:
>as i am getting a ecception after it.
but there is pointer ,how wil free.
>
I assume that you used TCHAR*c;
If yes, you'll need to free it first before delete the whole struct.
[Please don't top-post. Place comments in-line with or following what
you're replying to. I've rearragned it.]
Note that your suggestion refers to how to avoid a memory leak of the data
pointed to by that pointer (which would best be handled by a destructor, by
the way). The original poster said there's an exception, which would be
caused by something other than forgetting to call delete on that member.
(But as there's no code shown where the class is used, it's impossible to
know what causes the exception at this point.)
-Howard