I'm with a "simple fool trouble" with ZeosLib and Lazarus, in a new project.
I want to configure the ZConnection parameters in runtime, because I will get these parameters from a "ini" file.
I'm using:
- Windows 10 Home x64
- ZeosLib 7.2.8
- Lazarus 2.0.10 x64
- FPC 3.2.0
- SVN 63526
In these DataModule, I added a ZConnection and save it as "dbConn" name, and the class as "u_dbmod.pas". I want put here all data components.
And, in the MainForm, I declared the "u_dbmod" in the Implementation section, added one button wich calls the procedure "TDataModule1.CfgParams()" as follow:
Code: Select all
procedure TDataModule1.CfgParams();
begin
dbConn.HostName := '';
dbConn.Port := 5555;
dbConn.UserName := 'posgtres';
dbConn.Password := 'masterpass';
end;
BUT..... in runtime, when I click in the button to set these configuration by instructions, the Lazarus shows the follow error message:
Error: Project raised exception class 'External:SIGSEGV'.
In file 'u_dm.pas' in line 33:
dbConn.HostName := '';
Can anyone help me to understand why I can't to do this procedure at runtime?
Where's the error in that logic?
Since now I thank all for attention.
Thank you!!!
Best regards;
LRM