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?
Access violation in method TempBuffer
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.
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