View Issue Details

IDProjectCategoryView StatusLast Update
0037852FPCDatabasepublic2020-10-02 10:19
ReporterBruno Siqueira Assigned ToMichael Van Canneyt  
Status assignedResolutionopen 
Platformx86-x64OSWindows 64 
Product Version3.0.4 
Summary0037852: TFBAdmin.Destroy causes a memory leak if Firebird is terminated.

During tests in one of the applications I work on, we found a situation where the TFBAdmin.Destroy method causes a memory leak.

Possible cause:

In the "Destroy" method, there is a call to the "Disconnect" method and this in turn can raise an exception within "CheckError ('DisConnect', FStatus)". As a result, the rest of the Destroy method is not executed.
Steps To Reproduce1 - With the property "TFBAdmin.UseExceptions: = True", connect to the firebird server;
2 - Shut down the Firebird service;
3 - Try to destroy the TFBAdmin object (TFBAdmin.Free) and close the application.
Additional InformationPossible solution:

Along with the example project, I send a patch with the changes that solved the problems in our tests.
TagsNo tags attached.
Fixed in Revision
Attached Files


Bruno Siqueira

2020-10-02 00:56

reporter (144,720 bytes)

Issue History

Date Modified Username Field Change
2020-10-02 00:56 Bruno Siqueira New Issue
2020-10-02 00:56 Bruno Siqueira File Added:
2020-10-02 10:19 Michael Van Canneyt Assigned To => Michael Van Canneyt
2020-10-02 10:19 Michael Van Canneyt Status new => assigned