How does a C # application inside a code profiler differ from running one external code profiler?

I am trying to understand how a code profiler (in this case Drone Profiler ) launches a .NET application other than just running it directly. The reason I need to know this is because I have a very strange problem / corruption with my .NET installation for .NET, which manifests itself outside the profiler, but very strange not inside, and if I can understand why I, I can probably fix the problem with the computer.

The ONLY problem seems to affect the calls to System.Net.NetworkInformation methods (and only in .NET 3.5 to 2.0, if I create something against 4, everything is fine). I built a small test application that does only one thing, it calls System.Net.NetworkInformation.IsNetworkAvailable (). Outside of the profiler, I get the message "Fatal Execution Engine Error" in System.dll and that is all the information it gives. From what I understand, an error usually arises from calls to native methods that are supposed to occur when System.dll allows some native DLL to execute IsNetworkAvailable () logic.

  • I tried to figure out the internal and external differences of the profiler using Process Monitor , recording events from both situations and comparing them. Both logs were the same as just a moment after calling iphlpapi.dll and winnsi.dll and just before the profiler code called dnsapi.dll was run, and the code without the profiler started loading related error messages. At the moment when it seemed to go wrong, the profiler code was starting 4-6 new threads, and the code without the profiler (crashing) only created 1 or 2. I don’t know what this means if something.

Perhaps an unnecessary background

My installation of Windows 7 with .NET (3.5 to 2.0) worked fine until my hard drive was corrupted and checkdisk started looking for bad clusters. I mapped the disk to a new one and everything works fine except for one .NET problem.

, Windows .

, :

  • /, ( .NET Windows ) , , ( ).
  • , , , .
  • , . .
  • "sfc/scannow" .
  • "ngen update" , -, .
  • , , , .
  • , ​​ .

, .NET, Windows 7 .NET 3.5 - 2.0, .NET-, . Windows, Windows ( , ); , .

Windows, , ..

... - ? .NET 3.5 - 2.0, , .

!

Quinxy

+5
2

: System.ni.dll, , .

- ...

.Net , , . SlimTune open source profiler, Process.Start(). , , . , , - .NET, :

  • cor_enable_profiling = 1
  • cor_profiler = {38A7EA35-B221-425a-AD07-D058C581611D}

, ! , , . ( , GUID, , , -,.NET , GUID .)

, CL CLR , , . , , , , .

, chkdsk, , . / , 100+ , , , , , , 4 5 , .NET, , , " ". ? System.ni.dll!!! , .NET , , .

, , , , , , System.dll, . System.dll. , System.ni.dll System.dll( somesuch). .NET ( , ), .

... , System.ni.dll, , 0x0, , , .

+1

, "", .

( ), . -, , , . , , , , . ( ). , ( ).

, :

, . System.Threading.Thread.Sleep(500);, .

, .

0

All Articles