This project is read-only.

Help!I can't debug my Cosmos!

Jan 12, 2012 at 10:51 AM

When i want to debug my cosmos project,C#2010 Ultimate returned these errors:

 

Warning    1    “2008”not a right warning code    CosmosKernel1

Error    2    Plug needed. System.Void  System.Threading.Monitor.Exit(System.Object)
   在 Cosmos.IL2CPU.ILScanner.ScanMethod(MethodBase aMethod, Boolean aIsPlug) Dictionery c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:Line 663
   在 Cosmos.IL2CPU.ILScanner.ScanQueue() Dictionery c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:Line 779
   在 Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) Dictionery c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:Line 284
   在 Cosmos.Build.MSBuild.IL2CPUTask.Execute() Dictionery c:\Data\Sources\Cosmos\source2\Build\Cosmos.Build.MSBuild\IL2CPUTask.cs:Line 239    C:\Program Files\MSBuild\Cosmos\Cosmos.targets    32    10    CosmosKernel1Boot

 

Why?

Jan 12, 2012 at 10:55 AM
You are using methods/types which are not supported. Somehow you use the method Monitor.Exit.
You can use the scanner log (an html file in the output directory) to view which of your methods cause it, or otherwise just start commenting out code to see what does..


On Thu, Jan 12, 2012 at 11:51 AM, Juke <notifications@codeplex.com> wrote:

From: Juke

When i want to debug my cosmos project,C#2010 Ultimate returned these errors:

Warning 1 “2008”not a right warning code CosmosKernel1

Error 2 Plug needed. System.Void System.Threading.Monitor.Exit(System.Object)
在 Cosmos.IL2CPU.ILScanner.ScanMethod(MethodBase aMethod, Boolean aIsPlug) Dictionery c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:Line 663
在 Cosmos.IL2CPU.ILScanner.ScanQueue() Dictionery c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:Line 779
在 Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) Dictionery c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:Line 284
在 Cosmos.Build.MSBuild.IL2CPUTask.Execute() Dictionery c:\Data\Sources\Cosmos\source2\Build\Cosmos.Build.MSBuild\IL2CPUTask.cs:Line 239 C:\Program Files\MSBuild\Cosmos\Cosmos.targets 32 10 CosmosKernel1Boot

Why?

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 12, 2012 at 8:08 PM
Juke wrote:

When i want to debug my cosmos project,C#2010 Ultimate returned these errors:

 

Warning    1    “2008”not a right warning code    CosmosKernel1

Error    2    Plug needed. System.Void  System.Threading.Monitor.Exit(System.Object)
   在 Cosmos.IL2CPU.ILScanner.ScanMethod(MethodBase aMethod, Boolean aIsPlug) Dictionery c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:Line 663
   在 Cosmos.IL2CPU.ILScanner.ScanQueue() Dictionery c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:Line 779
   在 Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) Dictionery c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:Line 284
   在 Cosmos.Build.MSBuild.IL2CPUTask.Execute() Dictionery c:\Data\Sources\Cosmos\source2\Build\Cosmos.Build.MSBuild\IL2CPUTask.cs:Line 239    C:\Program Files\MSBuild\Cosmos\Cosmos.targets    32    10    CosmosKernel1Boot

 

Why?

Never seen a error, like this. I think you need to do what mterwood said, just comment out System.Threading.Monitor.Exit. If your using System.Threading, that is probilly the problem, just remove all code using it. I am not sure though. Or just start commenting out code like mterwood said until you figure out what was causing it. Your Truly - Matt