Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

(0) ShareShare
ReportReport
Posted on by 55

Hello 


I have issue when updating worker information, the screen freeze and roll back the changes after debug the code I found this issue on dirpartytable.

we are using D365FO.

0458.community.png
blocking-transactions.png

  • Martin Dráb Profile Picture
    231,923 Most Valuable Professional on at
    RE: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    Try putting the breakpoint at a different place. You could also try a different web server (IIS instead of IISExpress or vice versa) or a different version of Visual Studio.

  • yousefsuli Profile Picture
    55 on at
    RE: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    I did a full build the freezing issue still exists, and I checked the blocking transactions on SQL Server but there's no data. goshoom  do you have any other suggestion?

  • Martin Dráb Profile Picture
    231,923 Most Valuable Professional on at
    RE: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    All right, so you indeed doesn't get AccessViolationException in that case.

    Try if rebuilding the model doesn't solve the problem with debugging. You can also check blocking in SQL Server; it could be the cause.

  • yousefsuli Profile Picture
    55 on at
    RE: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    If I run without debugging when updating worker profile like name and press the save button system freeze for a couple of minutes, then refresh the application and roll back my change.

  • Martin Dráb Profile Picture
    231,923 Most Valuable Professional on at
    RE: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    Do you get any error if you run the code without debugging?

    Most cases when I saw this error where related to the debugger, not to the actual code.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,233 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans