View Issue Details

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

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
FPCOldBugId
FPCTarget
Attached Files

Activities

Bruno Siqueira

2020-10-02 00:56

reporter  

FBAdminBug.zip (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: FBAdminBug.zip
2020-10-02 10:19 Michael Van Canneyt Assigned To => Michael Van Canneyt
2020-10-02 10:19 Michael Van Canneyt Status new => assigned