Recent

Author Topic: SQLQuery.Filtered  (Read 1520 times)

JZS

  • Full Member
  • ***
  • Posts: 194
SQLQuery.Filtered
« on: June 26, 2017, 02:03:02 pm »
Hi All,

I have got a very strange heaptrc error when I quit my application.

This error happens when I do Filter on Query linked to DBLookupComboBox (four dblookupcomboboxes and two SQLQueries). Basically when one item of one of the dblookups gets selected I do simple "sqlquery.filter:= ..." it executes OK with no errors but only when I close the application the debugger throws the unfreed memory error, as attached.
Line 8340 on "win32wsspin.pp": not sure where does it point to, the lines of code there are way less than that.
&
Line 209 on "customcombobox.inc":
Code: Pascal  [Select][+][-]
  1. procedure TCustomComboBox.Select;
  2. begin
  3.   if Assigned(FOnSelect) and (ItemIndex >= 0) then
  4.     FOnSelect(Self);  <-------
  5. end;

Any control I use to do the filter ends up reported by heaptrc.

I tried this with Laz 1.6.4, 1.8 (RC's and fixes), and 1.9. All do the same.

I do not think it is my code (but probable) because no matter what I do it is only when I call "sqlquery.filtered:= True" this error starts building up, I tried with ButtonClick also the same error but it is TControl_Click this time, I have no special memory management, just dropped down controls on the form.

Anyone got any clue what might be happening?

That's all I have for now, until I dig deep and find out more.
I use recent stable release

 

TinyPortal © 2005-2018