EhLib.Com
https://forum.ehlib.com/en/

Access violation with TreeList (clsd)
https://forum.ehlib.com/en/viewtopic.php?f=5&t=842
Page 1 of 1

Author:  ISOAR [ 07 Sep 2018, 13:57 ]
Post subject:  Access violation with TreeList (clsd)

Hello,

We are using EhLib version 9.0.028 on Delphi 2009 and we have an insolvent problem.

Using a DBGridEh as well as the combination of the 4 components (TDataSource, TDataSetDriverEh, TMemTableEh and TADOQuery), we configure the TMemTableEh to pop up a TreeList with the default open nodes.

We use the scrollbar to position ourselves among the last lines of the table:
(image1)

Then we close a node framed in red (or another, the problem can occur too) and we get a loopback access violation (forced to force the executable shutdown via Windows).
(image 2)

The problem seems to be on the nodes at the end of the table that force the vertical scrollbar to go up.

The MemTableEh is filled "by hand". We use a SQL query that we rework for adding dynamic columns and we insert the data into the MemTableEh via Append. The fields are defined in the MemTableEh (right click Fields editor, tab Edit fields). However, this is to explain a context of use but it is not certain that there is a link with the problem.

Another point, by setting a breakpoint in the MemTableEh's BeforeScroll function (to try to identify the source of the problem), we found that the problem no longer occurred. We do not use the BeforeScroll or AfterScroll function, we just set a line of code "var a: string; a: = 'test';" To set a breakpoint and try to follow" step by step "without success.

Do you know what it is, if this problem has already been raised internally or by a user and if a property abnormally favors its appearance?

Our project is an important software linked to a SQL Server database, so we can not provide you with an example. However, if you want more information, you can ask us questions about it.

Sorry for the translation, we used internet.

Best regards

Attachments:
image2.jpg
image2.jpg [ 15.04 KiB | Viewed 1655 times ]
image1.jpg
image1.jpg [ 89.32 KiB | Viewed 1655 times ]

Author:  EhLibSupport [ 07 Sep 2018, 15:57 ]
Post subject:  Re: Access violation with TreeList

Hello

The last build of EhLib 9.0 is 9.0.046.
Can you download last build of EhLib 9.0 and check if the problem solved?

If you can't download last build, please, contact support@ehlib.com and provide your registration info (Licence number or Shareit ref no).

Author:  ISOAR [ 10 Sep 2018, 12:47 ]
Post subject:  Re: Access violation with TreeList

EhLibSupport wrote:
Hello

The last build of EhLib 9.0 is 9.0.046.
Can you download last build of EhLib 9.0 and check if the problem solved?

If you can't download last build, please, contact support@ehlib.com and provide your registration info (Licence number or Shareit ref no).


Hi,

First, thank you for the responsiveness !
I downloaded the latest build of the 9.0 and it works perfectly!

So the subject is closed, thank you for everything.

Have a nice day,

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/