Application crashes during library unload if record with strings is passed between application and library.
Original Reporter info from Mantis: dainius_simelevicius
-
Reporter name: Dainius Simelevicius
Original Reporter info from Mantis: dainius_simelevicius
- Reporter name: Dainius Simelevicius
Description:
I have and application which loads a library. Library has one procedure which returns an array of records to the main application using "out" parameter. The record has a field of type string. After this array is passed from the library to the application I can't unload the libray using FreeLibrary because it crashes.
Steps to reproduce:
I have attached a sample application.
Additional information:
The same application works on Delphi.
The same problem occurs on Linux version of FPC 2.6.0.
cmem and Dynlibs are used in the FPC version of application. Delphi version uses FastMM and Windows units instead.
FPC application was compiled using -Mdelphi option.
Mantis conversion info:
- Mantis ID: 22534
- OS: Windows
- OS Build: Windows 7
- Build: 2011/12/25
- Version: 2.6.0
- Monitored by: » dainius_simelevicius (Dainius Simelevicius)