What could be the possible reasons for "Access reading location or Access writing location"

Madhav 0 Reputation points
2024-08-26T07:33:34.7866667+00:00

I am having issues with access violation. below are the two examples.

Case1: When the following code had few assignments and few function calls. the access violation comes while assignment statement execute.

User's image

User's image

Case2: after rearranging the code, putting the assignment statements before the calls since that does not have any impacts on the implementation. the access violation location and type changed.

User's image

User's image

Now I can see in assembly it is there both time while working with edp regiseter. could there be anything I am missing or overstepping on? Would appreciate some help here a lot!

PS: I cannot share the code because of company policies, but if any further explanation is required, I will try whatever is possible to add.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.