Posted on 2003-11-07
I know it is an easy question for you. I am getting Access violation on freeing an object.
LineInfo := TStringList.Create;
...Try to do something but somehow no line could be added to LineInfo.
showmessage('could not add line');
Boundschecker is showing resource leak on LineInfo create even though no line could be added. When delphi tries to free it, it raises an exception, even though the object has not nil value. How can I free this object once it is created and then if it fails to add any line?