RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION THAT IS CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED TO SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.
When you use the .NET business connector to write data to Microsoft Dynamics AX by using the AxaptaRecord object through multiple threads, you may receive the following error message:
Error: Microsoft Dynamics Business Connector Session 14.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at DBFPut(UInt16 dataset, UInt32 field_ext, dbRecbuf* recdata, Void* fielddata, Int32 size) at cqlCursor.DBFPut(cqlCursor* , UInt32 field, Void* fielddata) at Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord.setFieldValue(UInt32 fieldId, Object value)
This problem occurs on a Multi-core processor computer, such as hyper-threaded, dual proc, dual core, and so on.
A supported hotfix is now available from Microsoft. The hotfix corrects the problem that is described in this article. Apply the hotfix only to systems that are experiencing this specific problem.
To resolve this problem immediately, contact your Microsoft Dynamics partner or Technical Support for Microsoft Dynamics and related products to obtain the hotfix. If you have access to online assisted support you can log on to the Microsoft Dynamics site and create a new support request. To do this, visit the following Microsoft Web site:
In special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to any additional support questions and issues that do not qualify for the specific update in question.
This hotfix is not scheduled to be included with a service pack. If you are a customer and if you do not have a Premier Support Agreement with Microsoft, you must contact your partner to obtain this hotfix.
For more information about how to install this hotfix, click the following article number to view the article in the Microsoft Knowledge Base:
893082 How to install a Microsoft Dynamics AX hotfix
There are no prerequisites for installing this hotfix.
You do not have to restart the computer after you apply this hotfix.
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
To work around this problem, use the Mutex class to control access to the .NET Business connector Axapta object. For example, in your C# code, you would write something resembles the following:
axapta = new Axapta();private static Mutex mut = new Mutex();...mut.WaitOne();AxaptaRecord ljTbl;ljTbl = axapta.CreateAxaptaRecord("LedgerJournalTable");ljTbl.set_Field("CurrencyCode", "USD");ljTbl.set_Field("JournalName", "Day1");...ljTbl.Insert();ljTbl.Dispose();mut.ReleaseMutex();
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, THE RELIABILITY OR THE ACCURACY OF THE INFORMATION THAT IS CONTAINED IN THE DOCUMENTS AND THE RELATED GRAPHICS PUBLISHED ON THIS WEB SITE (THE “MATERIALS”) FOR ANY PURPOSE.
THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON-INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.