Attempted To Read Or Write Protected Memory When Dequeueing A Propagated Message

(Doc ID 1328814.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Data Provider for .NET - Version: and later   [Release: 11.2 and later ]
Information in this document applies to any platform.


When attempting to dequeue a message that was propagated from another database, ODP.Net throws memory corruption related errors such as:

Attempted to read or write protected memory
OCI-21710:Argument is expecting a valid memory address of an object

The test program for this bug comprises two parts:

insertDataToSourceDB just inserts a bunch of data into the first database.  This data is propagated via AQ to the second.

DequeueMessageFromDes_DB dequeues messages from the second and should read back all data until there is none left.  However it crashes after only a few rows.  This number differs on each run.

If there is no data in the destination database then DequeueMessageFromDes_DB fails with an ORA-25228.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms