Comments
Sort by recent activity
Thanks for the feedback. I'll take a look at the code with which you are having problems.
"Cannot evaluate expression because the code of the current method is optimized" can be displayed if the module has been ngen'ed with optimization turned on. One sign of this is that the module will be displayed as optimized in the modules window. It is possible to re-ngen a module to turn the optimization off. The technique of using an ini file to do this is documented here: http://msdn.microsoft.com/en-us/library/9dd8z24x.aspx / comments
Thanks for the feedback. I'll take a look at the code with which you are having problems.
"Cannot evaluate expression because the code of the current method is optimized" can be displayed if the mo...
I managed to reproduce the problem here, but it doesn't appear to be connected with any Reflector code.
The error when I run as administrator is
System.IO.DirectoryNotFoundException
Could not find a part of the path 'C:\Users\Administrator\AppData\Local\Temp\Reflexil.Window\index.dat'.
The stacktrace for the error is
System.IO.__Error
WinIOError(Int32 errorCode, String maybeFullPath)
System.IO.FileStream
Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
System.IO.FileStream.
ctor(String path, FileMode mode, FileAccess access)
ICSharpCode.SharpDevelop.Dom.DomPersistence
SaveCacheIndex(Dictionary`2 cacheIndex)
ICSharpCode.SharpDevelop.Dom.DomPersistence
AddFileNameToCacheIndex(String cacheFile, ReflectionProjectContent pc)
ICSharpCode.SharpDevelop.Dom.DomPersistence
SaveProjectContent(ReflectionProjectContent pc)
ICSharpCode.SharpDevelop.Dom.ProjectContentRegistry
get_Mscorlib()
Reflexil.Forms.IntellisenseForm
ParserThread()
System.Threading.ThreadHelper
ThreadStart_Context(Object state)
so it looks like the problem is just that the code in the assembly ICSharpCode.SharpDevelop.Dom.dll expects the directory to exist. Hence the workaround is probably to create the directory, though the longer term solution is probably to get the add-in author to use an API to create the necessary directory. / comments
I managed to reproduce the problem here, but it doesn't appear to be connected with any Reflector code.
The error when I run as administrator is
System.IO.DirectoryNotFoundException
Could not find ...
I'd ask the question on the codeplex forum associated with the application. The point where it is failing seems to be when it is trying to read configuration information from the .config file, in particular information associated with the IgnoredMethodList key. / comments
I'd ask the question on the codeplex forum associated with the application. The point where it is failing seems to be when it is trying to read configuration information from the .config file, in p...
The stacktrace shows that the add-in is unable to get some information that it expects to find in the config file. One way to get it to work is to take appSettings information in the Reflector.exe.config that comes in the zip, and add that to the config file for the Reflector that you are using to host the add-in.
So, to get it to work I did the following:
(i) Copied the lines
<appSettings>
<add key="Pic2PlotPath" value="C:\Program Files\GnuWin32\bin\pic2plot.exe"/>
<add key="OutputType" value="svg"/>
<!--currently only svg format is supported-->
<add key="IgnoredMethodList" value="get_|set_|add_|remove_|ToString"/>
<add key="IgnoredTypeList" value="Console|String|Assert|Logging|Object|SR|SafeHandle"/>
<add key="IgnoredNSList" value="System.Diagnostics|System.Security"/>
</appSettings>
into the config file for the reflector I was using (one of the Reflector Pro beta builds)
(ii) Started reflector and loaded the Reflector.LiveSequence.dll assembly as an add-in.
I could then go to System.Activator.CreateInstance<T> and use the context menu option to generate a sequence diagram.
Does that help? / comments
The stacktrace shows that the add-in is unable to get some information that it expects to find in the config file. One way to get it to work is to take appSettings information in the Reflector.exe....
The CodeMetrics addin implements its command line behaviour itself by checking the CommandLine during the WindowManager_Load event, spotting the /Run, calling the addin code and then exiting.
There is (as far as I know) no general mechanism in Reflector for running commands and piping their output to a results file. / comments
The CodeMetrics addin implements its command line behaviour itself by checking the CommandLine during the WindowManager_Load event, spotting the /Run, calling the addin code and then exiting.
There...
blindahl wrote:
Another one - VS2010b2, decompiling Microsoft.VisualStudio.Editor.Implementation. Gets to 30% then crashes after a LONG wait - 15-20 minutes, maybe
Thanks for the report. This was the same bug reported in the message above, which was fixed in internal build 896. / comments
blindahl wrote:
Another one - VS2010b2, decompiling Microsoft.VisualStudio.Editor.Implementation. Gets to 30% then crashes after a LONG wait - 15-20 minutes, maybe
Thanks for the report. This ...
cdonovan wrote:
I'm having the same problem when decompiling Microsoft.Practices.EnterpriseLibrary.Logging.dll from version 4.1 of the Microsoft Patterns and Practices Enterprise Library. The decompile proceeds to 93% then stops and eventually Visual Studio 2008 crashes.
Thanks for the report. This was fixed in internal build 896. / comments
cdonovan wrote:
I'm having the same problem when decompiling Microsoft.Practices.EnterpriseLibrary.Logging.dll from version 4.1 of the Microsoft Patterns and Practices Enterprise Library. The d...
> BTW: Is there a possibility to get email notifications of new posts in
> this thread, or view a specific RSS feed for this thread?
On the profile/preferences section you can opt to get an email every time someone posts to a thread that you have posted in using "always notify me of replies". / comments
> BTW: Is there a possibility to get email notifications of new posts in
> this thread, or view a specific RSS feed for this thread?
On the profile/preferences section you can opt to get an email e...
Hi.
I thought it was a good idea when you mentioned it at PDC, and have now added it into our bug tracking system as a potential enhancement.
Thanks for the suggestion. / comments
Hi.
I thought it was a good idea when you mentioned it at PDC, and have now added it into our bug tracking system as a potential enhancement.
Thanks for the suggestion.
We'll certainly take a look at this. I've added an entry into the bug tracking system to investigate.
Reflector has the "Export" context menu item which is available when an assembly is selected. This generates code with appropriate using statements and we may be able to hook into that. / comments
We'll certainly take a look at this. I've added an entry into the bug tracking system to investigate.
Reflector has the "Export" context menu item which is available when an assembly is selected. T...