Red Gate forums :: View topic - Build 451 - decompile attempt (specific dll) crashes VSTS
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.Net Reflector 6.x and .NET Reflector 6.x Pro
.Net Reflector 6.x and .NET Reflector 6.x Pro forum

Build 451 - decompile attempt (specific dll) crashes VSTS

Search in .Net Reflector 6.x and .NET Reflector 6.x Pro forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
marc.gravell



Joined: 19 Oct 2009
Posts: 14
Location: UK

PostPosted: Fri Oct 23, 2009 3:05 pm    Post subject: Build 451 - decompile attempt (specific dll) crashes VSTS Reply with quote

Using Build 451 (was: 415, was: 381) on XP32/VSTS (2008).

I have a sample dll that I wanted to decompile (oddly enough, so I could re-compile it and use with source in ANTS) - it gets to 68% and then hard-crashes VSTS. (I repeated the attempt, just in case it was karma).

I can supply the dll on request. The dll is my own, and is not obfuscated. It is actually generated on-the-fly (CSharpCodeProvider) from data; I was simply trying to use Reflector to save myself the trouble of going in, turning on debug (so that it writes the cs to disk in addition to the dll), re-deploying and re-building the dynamic portion. I can supply the referenced dlls if needed, and the original cs if that would be helpful.


Last edited by marc.gravell on Thu Oct 29, 2009 10:58 am; edited 2 times in total
Back to top
View user's profile Send private message
Alex.Davies



Joined: 02 Dec 2008
Posts: 335
Location: Cambridge, uk

PostPosted: Fri Oct 23, 2009 4:40 pm    Post subject: Reply with quote

Yes, I'd be really interested to get the assembly that causes that crash. I've sent you an email.

Thanks a lot,
_________________
Alex
Developer,
Red Gate .NET Tools
Back to top
View user's profile Send private message
marc.gravell



Joined: 19 Oct 2009
Posts: 14
Location: UK

PostPosted: Fri Oct 23, 2009 8:43 pm    Post subject: Reply with quote

dll + project sent by e-mail
Back to top
View user's profile Send private message
Alex.Davies



Joined: 02 Dec 2008
Posts: 335
Location: Cambridge, uk

PostPosted: Tue Oct 27, 2009 12:28 pm    Post subject: Reply with quote

That was good fun to debug. Unfortunately, I'm not going to be able to fix it completely, as the function (the constructor of PCDataContext) is just too large, and causes a stack overflow. It's not worth rewriting to avoid the recursive walking the contents of the method, but I've put in something to avoid crashing VS completely. It'll be in the next build.

Thanks,
_________________
Alex
Developer,
Red Gate .NET Tools
Back to top
View user's profile Send private message
marc.gravell



Joined: 19 Oct 2009
Posts: 14
Location: UK

PostPosted: Tue Oct 27, 2009 1:33 pm    Post subject: Reply with quote

That's fine; for insane code, simply reporting an error (rather than killing VSTS) seems reasonable. And yes: that generated code is pure evil, but great for test purposes ;-p
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group