2

Closed

Plug needed. System.Void System.Threading.Monitor.Exit(System.Object)

description

Error 1 Plug needed. System.Void System.Threading.Monitor.Exit(System.Object)
at Cosmos.IL2CPU.ILScanner.ScanMethod(MethodBase aMethod, Boolean aIsPlug) in c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:line 663
at Cosmos.IL2CPU.ILScanner.ScanQueue() in c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:line 779
at Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) in c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:line 284
at Cosmos.Build.MSBuild.IL2CPUTask.Execute() in c:\Data\Sources\Cosmos\source2\Build\Cosmos.Build.MSBuild\IL2CPUTask.cs:line 239 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets 32 10 MyOSBoot
 
Thats a long error anyone know whats causing it?
Closed Jun 22, 2012 at 1:22 PM by kudzu
http://cosmos.codeplex.com/wikipage?title=Plugs&referringTitle=FAQ

comments

TravisSharp wrote Dec 2, 2011 at 2:17 AM

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

I get the same thing. Fresh install of the latest download.

Cman332 wrote Dec 29, 2011 at 11:53 PM

To figure out the source of the problem, we are going to need some source code for it. The "plug needed" errors are a little vague. Could you possibly attach your source?

Thanks
--CMan332--

TravisSharp wrote Jan 16, 2012 at 6:26 PM

This was with a fresh project ... no additional source code was written.

kudzu wrote Jan 16, 2012 at 9:48 PM

http://cosmos.codeplex.com/wikipage?title=FAQ



** Closed by kudzu 08/01/2012 12:45

kudzu wrote Jan 16, 2012 at 9:48 PM

smremde wrote Jan 17, 2012 at 3:51 PM

The clue is in the error as Kudzu pointed out, the native method needs plugging:

System.Void System.Threading.Monitor.Exit(System.Object)

Of course COSMOS is not yet multithreaded and there is no IPC, so plugging this method is a long way off. Are you using Monitor? or lock () { }? Simply don't.