In the past few weeks I’ve have had a number of strange application crashes for example I run “caspol –l” (which I’ve run many times before) and get an error. With just-in-time debugging I get:
Unhandled exception at 0x1000639b in CasPol.exe: 0xC0000005: Access violation reading location 0x00e0ada0.
If it were one of our applications I would assume we're doing something goofy with a pointer. But caspol used to work. In any case it actually seems to get to the end of its run as it lists 13 full trust assemblies before crapping out:
Full Trust Assemblies:
1. mscorlib.resources = StrongName -
...
13. System.DirectoryServices.resources 1.0.5000.0 = StrongName - 002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8 F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645 C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293 name = System.DirectoryServices.resources version = 1.0.5000.0
Harrrumphhh.
My machine: Pentium 4 2.4Ghz, 1 GB Ram, Windows XP Pro Service Pack 1
I’ve just spent a fun morning seeing if the problem is system related:
1) Repair VS .Net 2003 and prerequisites.
2) Turn off paging
3) Run a full chkdsk (one that did all 5 tests – including file and free space scans)
4) Run Microsoft’s memory diagnostic (http://oca.microsoft.com/en/windiag.asp)
None of these changes or tests found any errors or solved the problem.
Any suggestion on what to do next (beyond repaving my machine)?
Update - I should have looked at the stack trace in the JIT debug. I was in CodeCoverage.dll (from CoverageEye.NET - another code coverage testing tool).