Running program that uses TRegIniFile from Lazarus IDE results in program crashing with SIGSEGV
Original Reporter info from Mantis: andrei.datcu
-
Reporter name: Andrei Datcu
Original Reporter info from Mantis: andrei.datcu
- Reporter name: Andrei Datcu
Description:
If I have a program/LCL Application that uses TRegIniFile and I run it from the IDE, I always get a fatal exception when running the object's destructor.
Steps to reproduce:
Open the attached project in Lazarus 1.6.2. Run the project.
Additional information:
Let's take the following snippet
rf := TRegIniFile.Create('Software\BogusName');
try
c := rf.ReadInteger('ReadOptions', 'CheckSignature', 0); // Always returns 0
finally
rf.Free; // Always crashes if here if the Reg Key exists. If it doesn't, then there's no crash
end;
Mantis conversion info:
- Mantis ID: 31441
- OS: Windows
- OS Build: 7 64 bit
- Platform: Win32
- Version: 1.6.2
- Monitored by: » andrei.datcu (Andrei Datcu)