Recent

Author Topic: [SOLVED] Strange things closing form  (Read 5326 times)

Kyjan

  • New Member
  • *
  • Posts: 41
[SOLVED] Strange things closing form
« on: June 08, 2011, 08:46:32 pm »
Hi,

i found a strange error. When I try to close the form using the red x in the upper right corner in windows, i got some strange error messages. I tried to write an event handler (onclosequery) to close all open dataset, but this is not the solution.
Any idea?

Thanks,
Kyjan
« Last Edit: June 10, 2011, 09:22:12 pm by Kyjan »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Strange things closing form
« Reply #1 on: June 08, 2011, 08:50:30 pm »
Which are the messages?

Kyjan

  • New Member
  • *
  • Posts: 41
Re: Strange things closing form
« Reply #2 on: June 08, 2011, 08:56:59 pm »
Here it is.
Thanks

Kyjan

  • New Member
  • *
  • Posts: 41
Re: Strange things closing form
« Reply #3 on: June 09, 2011, 12:29:22 pm »
Any idea?

Regards,
Kyjan

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Strange things closing form
« Reply #4 on: June 09, 2011, 12:35:21 pm »
Quote
I tried to write an event handler (onclosequery) to close all open dataset, but this is not the solution
Well, it is not problem with closing empty Form but you have more components there.
You should give here more info or (better) code or simplified compilable project.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Kyjan

  • New Member
  • *
  • Posts: 41
Re: Strange things closing form
« Reply #5 on: June 09, 2011, 03:34:02 pm »
Blazen, thanks.
I don't know what details do you need. It is a lawyer office program which can handle all the datas of clients, mails, deadlines, and cases. It uses tsqlite3dataset (3 of them) and other data handling object.
Is it possible that I'll give you the whole code?

Thanks,
Kyjan

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Strange things closing form
« Reply #6 on: June 09, 2011, 04:39:09 pm »
I don't work with Tsqlite3dataset. The AccessViolation error you posted means that you try access some memory which is already freed.
So important is what you have in events: OnClose, OnHide, OnDeactivate.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Kyjan

  • New Member
  • *
  • Posts: 41
Re: Strange things closing form
« Reply #7 on: June 10, 2011, 09:21:42 pm »
Thanks for the idea! I have written in OnClose event a Halt; and now everything is all right!:)))

 

TinyPortal © 2005-2018