Stack Empty

4 posts, 0 answers
  1. Russ
    Russ avatar
    49 posts
    Member since:
    Sep 2006

    Posted 17 May 2011 Link to this post

    <P>Stack empty. at System.Collections.Generic.Stack`1.Pop() at 
    ..(MethodReference method) at ..OnCall(Instruction instruction) at 
    ..(Instruction instruction, IInstructionVisitor visitor) at 
    Telerik.JustDecompiler.Decompiler.StatementDecompiler.(Instruction instruction) 
    at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(InstructionBlock 
    block) 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) at 
    Telerik.JustDecompiler.Decompiler.Extensions.(DecompilationPipeline pipeline, 
    MethodBody body) at 
    Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(MethodDefinition 
    method) at 
    Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(IMemberDefinition 
    member) at 
    JustDecompile.CodeViewer.ViewModels.CodeViewerViewModel.(AssemblyMemberNode 
    member, CancellationToken cancellationToken) in c:\B\Behemoth\JustDecompile 
    Production 
    Build\Sources\UI\JustDecompile.CodeViewer\ViewModels\CodeViewerViewModel.cs:line 
    102</P>
  2. jm
    jm avatar
    1 posts
    Member since:
    May 2011

    Posted 20 May 2011 Link to this post

    Same problem for me.
    Here is the source code for the application. (Based on a Linq sample from somewhere on the web and SnippetCompiler)

    using System;
    using System.Collections.Generic;
    using System.Linq;
    public class rewardlog{
            public int RewardID;
          
        public int RewardPoints;
        public string UserID;
        }
        public class contextClass{
            public List<rewardlog> rewardslog;
        }
          
        public class rewardMaster{
            public int Id;
        public int RewardType;
        public int RewardPoints;}
    public class MyClass
    {
          
          
        public static void RunSnippet()
        {
            contextClass context=new contextClass();
            List<rewardMaster> rewardsmaster=new List<rewardMaster>();
    var q = from i in (from rl in context.rewardslog
      
                       join rm in rewardsmaster on rl.RewardID equals rm.Id
      
                       where rl.UserID == "varsha"
      
                                          select new {rl.UserID, rm.RewardType, rl.RewardPoints})
      
            group i by new {i.RewardType, i.UserID} into g
      
            select new {g.Key.UserID, g.Key.RewardType, Points = g.Sum(rl => rl.RewardPoints)};
      
       
      
        }
          
        #region Helper methods
          
        public static void Main()
        {
            try
            {
                RunSnippet();
            }
            catch (Exception e)
            {
                string error = string.Format("---\nThe following error occurred while executing the snippet:\n{0}\n---", e.ToString());
                Console.WriteLine(error);
            }
            finally
            {
                Console.Write("Press any key to continue...");
                Console.ReadKey();
            }
        }
      
        private static void WL(object text, params object[] args)
        {
            Console.WriteLine(text.ToString(), args);   
        }
          
        private static void RL()
        {
            Console.ReadLine(); 
        }
          
        private static void Break() 
        {
            System.Diagnostics.Debugger.Break();
        }
      
        #endregion
    }
  3. DevCraft banner
  4. Hamid va
    Hamid va avatar
    3 posts
    Member since:
    Oct 2009

    Posted 21 May 2011 Link to this post

    Stack empty.
       at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
       at System.Collections.Generic.Stack`1.Pop()
       at ..()
       at ..(MethodReference method)
       at ..OnCall(Instruction instruction)
       at ..(Instruction instruction, IInstructionVisitor visitor)
       at Telerik.JustDecompiler.Cil.BaseInstructionVisitor.Visit(Instruction instruction)
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(Instruction instruction)
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.(InstructionBlock block)
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.€(InstructionBlock block)
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.()
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.Run()
       at Telerik.JustDecompiler.Decompiler.StatementDecompiler.Process(DecompilationContext context, BlockStatement body)
       at Telerik.JustDecompiler.Decompiler.DecompilationPipeline.Run(MethodBody body)
       at Telerik.JustDecompiler.Decompiler.Extensions.(DecompilationPipeline pipeline, MethodBody body)
       at Telerik.JustDecompiler.Decompiler.Extensions.Decompile(MethodBody body, ILanguage language)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(MethodDefinition method)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.•ƒ(IMemberDefinition member, Boolean isLastMember)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.—ƒ(IMemberDefinition x, Boolean y)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.WriteTypeMembers(TypeDefinition type, Func`3 writeMember, Boolean writeNewLine)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(TypeDefinition type, Func`3 writeMember, Boolean writeNewLine)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.WriteType(TypeDefinition type)
       at JustDecompile.CodeViewer.CodeWriter.Write() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\Writers\CodeWriter.cs:line 27
       at JustDecompile.CodeViewer.ViewModels.CodeViewerViewModel.(AssemblyMemberNode member, CancellationToken cancellationToken) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\ViewModels\CodeViewerViewModel.cs:line 102
  5. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 23 May 2011 Link to this post

    Hi Russ,

    Thanks again for reporting the issue. Looks like this an issue during method invocation. We will investigate and provide a fix in the coming build.

    Should you have any other exceptions please don’t hesitate to contact us.


    Kind Regards,
    Ricky
    the Telerik team

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

Back to Top