View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0037852 | FPC | Database | public | 2020-10-02 00:56 | 2020-11-08 18:05 |
Reporter | Bruno Siqueira | Assigned To | Michael Van Canneyt | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x86-x64 | OS | Windows 64 | ||
Product Version | 3.0.4 | ||||
Fixed in Version | 3.3.1 | ||||
Summary | 0037852: TFBAdmin.Destroy causes a memory leak if Firebird is terminated. | ||||
Description | Hi, 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 Reproduce | 1 - 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 Information | Possible solution: Along with the example project, I send a patch with the changes that solved the problems in our tests. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 47343 | ||||
FPCOldBugId | |||||
FPCTarget | 3.2.2 | ||||
Attached Files |
|
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 |
2020-11-08 18:05 | Michael Van Canneyt | Status | assigned => resolved |
2020-11-08 18:05 | Michael Van Canneyt | Resolution | open => fixed |
2020-11-08 18:05 | Michael Van Canneyt | Fixed in Version | => 3.3.1 |
2020-11-08 18:05 | Michael Van Canneyt | Fixed in Revision | => 47343 |
2020-11-08 18:05 | Michael Van Canneyt | FPCTarget | => 3.2.2 |
2020-11-08 18:05 | Michael Van Canneyt | Note Added: 0126799 |