Comments
Sort by recent activity
I tried putting that code in a simple WinForms test project and ran that under the profiler. Unfortunately, it seems to work just fine. I can consistently repro the error every time in our main client app, but I cannot inside a test project, unfortunately.
Judging by the pieces of code that cause the BadImageFormatException, this seems almost certainly due to copying a generic IEnumerable to an array.
Also, in both places, the error was thrown while on a background thread. So it may have something to do with multiple threads running. Hard to say for sure.
Again, the key seems to be copying a generic IEnumerable to an array: this time it happens in my custom code that copies an IEnumerable to an array, previously the error happened in the .NET framework's List<T>.CopyTo method. / comments
I tried putting that code in a simple WinForms test project and ran that under the profiler. Unfortunately, it seems to work just fine. I can consistently repro the error every time in our main cli...
Brian, the ` character actually comes from the IL itself. For example, the generic IList interface looks like this in IL: System.Collections.Generic.IList`1<!T>
In other words, the IL uses that particular character as a way to denote a generic type.
Tom, I'll see what I can do about getting you a repro case. If I get some free time, I'll give it a try in a testing project. / comments
Brian, the ` character actually comes from the IL itself. For example, the generic IList interface looks like this in IL:System.Collections.Generic.IList`1<!T>
In other words, the IL uses t...
Hi Brian & Tom
I am also getting this problem. It started happening only recently after I had modified my code. After my modifications, this error consistently occurs whenever I run it under the profiler.
I'm running Red Gate Profiler 2.5.0000, .NET runtime 2.0 beta 2, running on an XP Pro machine with SP2, under a Windows Limited User Account. Hardware setup is a P4 CPU 3.00GHz, 1.00GB RAM.
If necessary, I could track down the bits of code causing this, as I believe I have already scoped it down to a single method that causes the Profiler error. Let me know if you need this information. / comments
Hi Brian & Tom
I am also getting this problem. It started happening only recently after I had modified my code. After my modifications, this error consistently occurs whenever I run it under the pr...