D
Duncan Smith
If I set a breakpoint on all four lines within the curly brackets in
VS2005, the 'delete str' breakpoint is always removed and the line
itself is removed from the code.
Why is not possible to call delete on a String^ ref type like it is
for other ref handles? Would it be because the String type has no
protected member called Dispose?
{
String^ str = gcnew String( messageText );
delete str;
IO::StreamReader^ rdr = gcnew IO::StreamReader("d:\\done.txt");
delete rdr;
}
Many thanks,
Duncan
VS2005, the 'delete str' breakpoint is always removed and the line
itself is removed from the code.
Why is not possible to call delete on a String^ ref type like it is
for other ref handles? Would it be because the String type has no
protected member called Dispose?
{
String^ str = gcnew String( messageText );
delete str;
IO::StreamReader^ rdr = gcnew IO::StreamReader("d:\\done.txt");
delete rdr;
}
Many thanks,
Duncan