Access violation in method TempBuffer

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Access violation in method TempBuffer

Post by a-s-z » Tue 16 Nov 2010 10:27

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?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Tue 16 Nov 2010 11:06

Hello,


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

a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Post by a-s-z » Wed 15 Dec 2010 08:14

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

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Wed 15 Dec 2010 12:56

Hello

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

Post Reply