Page 1 of 1

Access violation in method TempBuffer

Posted: Tue 16 Nov 2010 10:27
by a-s-z
Hello,

I am getting an access violation in method TempBuffer. FRecordCount is 0 and FBuffers is nil. The method is called from TMemDataSet.LocateRecord.

It seems to be a problem when multiple components are accessing the datasets "simultanously":
First component is calling 'Close' and second component is notified through NotifyLinkTypes(deUpdateState). The dataset is reopened in this handler, and this leads to the access violation in first component when calling Locate afterwards, because Active is true but FBuffers is nil.

How do I solve this problem?

Posted: Tue 16 Nov 2010 11:06
by AlexP
Hello,


Please send a complete small sample to demonstrate the problem, including the script to create a table to alexp*devart*com

Posted: Wed 15 Dec 2010 08:14
by a-s-z
Hi Alex,

sorry for the (very) late reply, but at the moment I do not have the time to prepare a small sample. For now I have realized a workaround with locking mechanisms.
I will send an example as soon as I have some spare time for this issue.
AlexP wrote:Hello,


Please send a complete small sample to demonstrate the problem, including the script to create a table to alexp*devart*com

Posted: Wed 15 Dec 2010 12:56
by bork
Hello

We are interested in stability of our components so we are looking forward to receiving your sample.