Until recently I had been using the profiler without any problems. Then I changed a couple of lines of code and my app raised the following exception when profiled:
"Attempted to read or write protected memory"
This exception only occurs when profiling. I managed to get round the problem by moving some lines of code around, but then it recurred in a different location when I made subsequent changes.
The code that I'm profiling is pure managed code, so I don't see how it can be anything in there causing the problem.
The application I am profiling is very large, so it isn't practical to send a sample solution.
Any ideas?
"Attempted to read or write protected memory"
This exception only occurs when profiling. I managed to get round the problem by moving some lines of code around, but then it recurred in a different location when I made subsequent changes.
The code that I'm profiling is pure managed code, so I don't see how it can be anything in there causing the problem.
The application I am profiling is very large, so it isn't practical to send a sample solution.
Any ideas?