This is a migrated thread and some comments may be shown as answers.

Error in Decompile

3 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Russ
Top achievements
Rank 1
Russ asked on 02 Nov 2011, 06:49 PM
I'm receiving the following error in JustDecompile.  Code snippet that it fails on follows:

Current member / type: System.Void LRS.WebCommon.EmployeeInfo::Fill(System.String)File path: C:\Temp\4.0\LRS.WebCommon.dllcall at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(Instruction instruction) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(CatchHandlerData catch_data) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(ExceptionHandlerData data, TryStatement try) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(ExceptionHandlerData data) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(InstructionBlock block, InstructionBlock previous) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.€(InstructionBlock block) at Telerik.JustDecompiler.Decompiler.StatementDecompiler.() at Telerik.JustDecompiler.Decompiler.StatementDecompiler.Process(DecompilationContext context, BlockStatement body) at Telerik.JustDecompiler.Decompiler.DecompilationPipeline.Run(MethodBody body, ILanguage language) at Telerik.JustDecompiler.Decompiler.Extensions.(DecompilationPipeline pipeline, ILanguage language, MethodBody body) at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(MethodDefinition method) at Telerik.JustDecompiler.Languages.BaseLanguageWriter.Write(IMemberDefinition member, Boolean showCompilerGeneratedMembers) at JustDecompile.CodeViewer.CodeWriter.Write() in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\Writers\CodeWriter.cs:line 34 at JustDecompile.CodeViewer.ViewModels.CodeViewerViewModel.(AssemblyMemberNode member, CancellationToken cancellationToken) in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\ViewModels\CodeViewerViewModel.cs:line 134

Private Overloads Sub Fill(ByVal loginName As String)
 
    Dim empCookie As HttpCookie
    Dim makeCookie As Boolean = True
 
    ''See if it's in the Request Object that was sent up to the server
    If Not HttpContext.Current.Request.Cookies("EmpInfo") Is Nothing _
      AndAlso HttpContext.Current.Request.Cookies("EmpInfo").Values.Count > 13 Then
      makeCookie = False
    End If
 
    ''cookie was found and the userName Item matches the loginName passed in
    With HttpContext.Current.Request
      Select Case True
        ''Cookie wasn't found or UserName cookie doesn't equal the one passed in
        Case makeCookie
          If loginName <> "" Then
            empCookie = CreateEmpCookie(loginName)
          Else
            Throw New Exception("Error creating login cookie." & Chr(13) & Chr(10) & _
              "Your login name is " & loginName & ".  Your extracted Network ID is " & _
              Me.GetUserName() & "." & Chr(13) & Chr(10) & _
              "Please call 217-793-3800 x1444")
          End If
          ''Reuse the one in the cookie
        Case Else
          empCookie = HttpContext.Current.Request.Cookies("EmpInfo")
      End Select
    End With
    Try
      SetValues(empCookie)
    Catch
      SetValues(CreateEmpCookie(loginName))
    End Try
  End Sub

3 Answers, 1 is accepted

Sort by
0
Yordan Dikov
Telerik team
answered on 09 Nov 2011, 01:26 PM
Hi Russ,

Please excuse me for the delayed response. Thank you for sending this report to us. Thanks to the code snippet you sent us we were able to pinpoint the cause of the problem. I've added some Telerik points to your account as well. We're currently working on the issue, so expect improvements in the upcoming updates.

All the best,
Yordan Dikov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Russ
Top achievements
Rank 1
answered on 26 Jan 2012, 10:41 PM
I just installed version 2012.1.106.0 and this is not fixed.  Any idea as to when it might be?
0
Tsviatko Yovtchev
Telerik team
answered on 06 Feb 2012, 05:37 PM
Hello Russ,

I beg your pardon for the delay.  

 We did a major overhaul of our decompilation engine that should fix that and many other issues. We just released a public version with the new engine. So, please, update and let us know how it works for you.

Greetings,
Tsviatko Yovtchev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Russ
Top achievements
Rank 1
Answers by
Yordan Dikov
Telerik team
Russ
Top achievements
Rank 1
Tsviatko Yovtchev
Telerik team
Share this question
or