Comments
Sort by recent activity
Tom, I've updated this post which links to a working repro case. (Direct repro case download is here) That previous repro case didn't repro because I forgot to include the .pdb for the problematic dll! :-) / comments
Tom, I've updated this post which links to a working repro case. (Direct repro case download is here) That previous repro case didn't repro because I forgot to include the .pdb for the problematic ...
viper, this same error happened to us as well, see http://red-gate.com/messageboard/viewtopic.php?t=2525
For us, it always is happening when we copy a generic list to an array, so I'm wondering if that's the same for you, or if it's 2 seperate issues in the profiler. / comments
viper, this same error happened to us as well, see http://red-gate.com/messageboard/viewtopic.php?t=2525
For us, it always is happening when we copy a generic list to an array, so I'm wondering if ...
Never mind that previous post, here's a link to a repro case that shows it: Bad Class Token.zip.
When running the above project under the ants profiler, click the big button, and the error will be thrown. / comments
Never mind that previous post, here's a link to a repro case that shows it: Bad Class Token.zip.
When running the above project under the ants profiler, click the big button, and the error will be ...
Hi guys
Version 2.7 fixes this problem. Thanks! / comments
Hi guys
Version 2.7 fixes this problem. Thanks!
Update: after further profiling, it seems this bug is still occurring in v2.7.
I've looked into where the BadImageFormatException is getting thrown, and I've found it's being thrown in the same place: in a call to the ConvertToArray method.
If I delete the pdb files for my application prior to profiling, it works. Of course, no methods are then instrumented, so that's hardly a work-around.
Since I cannot, at this time, send you the application causing the problem, and since I can't seem to get a reproducible test case going, is there some way you guys could give me a special build with some verbose logging to help track down the problem? I'd really like to solve this one. It'd be in the best interest of both myself and Red Gate to have this problem solved. / comments
Update: after further profiling, it seems this bug is still occurring in v2.7.
I've looked into where the BadImageFormatException is getting thrown, and I've found it's being thrown in the same pla...
Guys, I've got a reproducible test case for you. See the end of this post for more info and for the repro case download.
p.s. this bug is still occurring in 2.7.1 -- this has been plaguing us for months, so I'd love to have it fixed! Thanks. / comments
Guys, I've got a reproducible test case for you. See the end of this post for more info and for the repro case download.
p.s. this bug is still occurring in 2.7.1 -- this has been plaguing us for m...
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...