Isn't this a bug?

F-IN-BOX for Delphi / Builder C++ / VCL
abb
Posts: 21
Joined: Fri Jan 09, 2009 3:32 pm
Location: Russia

Isn't this a bug?

Postby abb » Thu Apr 30, 2009 1:28 pm

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.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Apr 30, 2009 7:01 pm

Thank you for your report.

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

Thank you very much!
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sat May 02, 2009 2:48 pm

We've updated the edition.

Thank you!
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 18 guests

cron