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

Stack overflow while traversing code tree in transform

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Trevor Thienhardt
Top achievements
Rank 1
Trevor Thienhardt asked on 02 Aug 2011, 10:50 PM
Just Decompile Verion  2011.1.728.1

Decompiling microsoft.xrm.client.codegeneration.dll from the CRM 2011 5.0.5 SDK  (available from http://www.microsoft.com/download/en/details.aspx?id=24004
)

Current member / type: Microsoft.Xrm.Client.CodeGeneration.CodeCustomizationCodeDomHelpers
File path: C:\code\CRM2011SDK\sdk\bin\microsoft.xrm.client.codegeneration.dll
Stack overflow while traversing code tree in transform.


  at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit[TCollection,TElement](TCollection original)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(StatementCollection node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitBlockStatement(BlockStatement node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitAnonymousDelegateExpression(AnonymousDelegateExpression node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit[TCollection,TElement](TCollection original)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ExpressionCollection node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitMethodInvocationExpression(MethodInvocationExpression node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitReturnStatement(ReturnStatement node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit[TCollection,TElement](TCollection original)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(StatementCollection node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitBlockStatement(BlockStatement node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitAnonymousDelegateExpression(AnonymousDelegateExpression node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit[TCollection,TElement](TCollection original)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ExpressionCollection node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitMethodInvocationExpression(MethodInvocationExpression node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitReturnStatement(ReturnStatement node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit[TCollection,TElement](TCollection original)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(StatementCollection node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitBlockStatement(BlockStatement node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitAnonymousDelegateExpression(AnonymousDelegateExpression node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit[TCollection,TElement](TCollection original)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ExpressionCollection node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitMethodInvocationExpression(MethodInvocationExpression node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit[TCollection,TElement](TCollection original)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ExpressionCollection node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitMethodInvocationExpression(MethodInvocationExpression node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit[TCollection,TElement](TCollection original)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ExpressionCollection node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitMethodInvocationExpression(MethodInvocationExpression node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitAssignExpression(AssignExpression node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitExpressionStatement(ExpressionStatement node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(ICodeNode node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit[TCollection,TElement](TCollection original)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.Visit(StatementCollection node)
   at Telerik.JustDecompiler.Ast.BaseCodeTransformer.VisitBlockStatement(BlockStatement node)
   at Telerik.JustDecompiler.Steps.RebuildLambdaExpressions.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.•ƒ(IMemberDefinition member, Boolean isFirstMember)
   at Telerik.JustDecompiler.Languages.BaseLanguageWriter.(TypeDefinition type, Func`3 writeMember, Boolean writeNewLine, Boolean showCompilerGeneratedMembers)
   at Telerik.JustDecompiler.Languages.BaseLanguageWriter.Write(TypeDefinition type, Func`3 writeMember, Boolean writeNewLine, Boolean showCompilerGeneratedMembers)
   at Telerik.JustDecompiler.Languages.BaseLanguageWriter.WriteType(TypeDefinition type, Boolean showCompilerGeneratedMembers)
at JustDecompile.CodeViewer.ViewModels.CodeViewerViewModel.(AssemblyMemberNode member, CancellationToken cancellationToken) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\ViewModels\CodeViewerViewModel.cs:line 116 public static void AddInterceptQueryProperty(this CodeTypeDeclaration cmsDataServiceContext, CodeNamespace codeNamespace, string entityTypeName, string nameForEntitySet)
{
CodeStatement[] codeStatementArray = null;
CodeMemberProperty codeMemberProperty = CodeCustomizationCodeDomHelpers.PropertyGet(0, "InterceptQuery"[CodeExpression[] codeExpressionArray = new CodeExpression[1]] = CodeCustomizationCodeDomHelpers.Return(CodeCustomizationCodeDomHelpers.ThisMethodInvoke(codeExpressionArray[0] = CodeCustomizationCodeDomHelpers.Base(nameForEntitySet), codeExpressionArray)), codeStatementArray);
cmsDataServiceContext.Members.Add(codeMemberProperty);
}


Any ideas?

1 Answer, 1 is accepted

Sort by
0
Nikolay G Rusev
Telerik team
answered on 03 Aug 2011, 11:29 AM
Hello Trevor Thienhardt,

Thank you for the detailed exception report. We were able to successfully reproduce the exception here.
It seems that we have a problem when decompiling LINQ queries. We've logged the issue, so we'll start working on it soon.

Regards,
Nikolay G. Rusev
the Telerik team

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

Tags
General Discussions
Asked by
Trevor Thienhardt
Top achievements
Rank 1
Answers by
Nikolay G Rusev
Telerik team
Share this question
or