Hi every body.
Windows 10
Lazarus 2.0.6
Dell Inspiron 15 Memory 4 GB
I intalled this new version of Lazarus to query a Postgresql database.
As usual, I dropped PQConnection, SQLQuery, SQLTransaction, DataSource and DBGrid on the form.
Everything goes OK when executed, the DBGrid shows correctly the datas. A left click on the system menu closes the form.
I create a OnClose event on the form and troubles appear. I get an External SIGSEGV in the file unite_alat.pas at line 52.
This corresponds to the line "begin" of the FormClose procedure.
The lines in the stack are :
0 unite_alat.pas 52 FORMCLOSE(0x0,0x0, <error reading variable: Cannot acces memory at address 0x0>)
1 customform.inc(include\) 959 DOCLOSE(0x107370, CAFREE)
2 customform.inc(include\) 2196 CLOSE(0x107370)
3 unite_alat.pas 53 FORMCLOSE(0x107370, 0x107370, CAFREE)
4 customform.inc(include\) 959 DOCLOSE(0x107370, CAFREE)
5 customform.inc(include\) 2196 CLOSE(0x107370)
6 unite_alat.pas 53 FORMCLOSE(0x107370, 0x107370, CAFREE)
7 customform.inc(include\) 959 DOCLOSE(0x107370, CAFREE)
8 customform.inc(include\) 2196 CLOSE(0x107370)
9 unite_alat.pas 53 FORMCLOSE(0x107370, 0x107370, CAFREE)
The incriminated lines in the assembler window are :
unite_alat.pas:52 begin
000000010002D300 55 push %rbp
000000010002D301 4889e5 mov %rsp,%rbp
000000010002D304 488d6424c0 lea -0x40(%rsp),%rsp
->000000010002D309 48894de8 mov %rcx,-0x18(%rbp)
000000010002D30D 488955f84c8945f0 mov %rdx,-0x8(%rbp)
unite_alat.pas:53
When I execute the program directly from the exe file I get a "Stack overflow Press..." warning.
I would be gratefull if someone could help me, thanks in advance.
Michel