Consultor Eletrônico



Kbase P144935: System.AccessViolationException error when calling RefreshAll method of proBindingSource
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/31/2011
Status: Verified

SYMPTOM(s):

System.AccessViolationException error when calling RefreshAll method of proBindingSource

Attaching query object to multiple PBS objects causes System.AccessViolationException

System.AccessViolationException: Attempted to read or write protected memory

Application becomes unusable when calling RefreshAll method on binding source

FACT(s) (Environment):

Windows
OpenEdge 10.2A

CAUSE:

Bug# OE00183351

FIX:

The problem occurred because the code was binding multiple bindingSources to the same query then running refreshAll on the original bindingSource. The query/bindingSource relationship was not intended to function in this way. One should never attempt to browse a query's result set with multiple proBindingSource objects.