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