Page 1 of 1

Isn't this a bug?

Posted: Thu Apr 30, 2009 1:28 pm
by abb
I've got AV here:

function TContentManager.CloseFakeHandleAndReleaseStream(Handle: THandle): BOOL;

.................

Pair := TFakeHandleStreamPair(m_ListOfFakeHandleStream[nIndex]);

.................

And I beleave it's because you don't delete the Pair from the list after Pair is freed. Really your code should look like this:

..............
if Pair.m_Handle = Handle then
begin
Pair.Free;
>>>>>>>>>>>>>>>>>>>>>
m_ListOfFakeHandleStream.Delete(nIndex);
>>>>>>>>>>>>>>>>>>>>>
Result := True;
break;
end;
..............

AV disappeared after I inserted this line.

Thanks.

Posted: Thu Apr 30, 2009 7:01 pm
by Softanics
Thank you for your report.

Yes, looks like a bug, we will issue an update tomorrow.

Thank you very much!

Posted: Sat May 02, 2009 2:48 pm
by Softanics
We've updated the edition.

Thank you!