This project is read-only.

Compile error in sample code

Apr 29, 2010 at 6:42 PM
Edited Apr 29, 2010 at 6:50 PM
Hello, I'm trying to run the sample code taken directly from CodeProject (, but I get a compile error. The error is: "The best overloaded method match for 'Amib.Threading.Internal.WorkItemsGroupBase.QueueWorkItem(Amib.Threading.WorkItemCallback, Amib.Threading.WorkItemPriority)' has some invalid argument" It occurs on the line which queues the work item. If you click the link above, it will take you directly to the example which I am trying to run. I must be doing something wrong ? :-) Thanks! (Also, I tried to post the code, but it didn't stay formatted) Thanks, Steve
Apr 30, 2010 at 8:33 AM


Can you post the code?

I checked the code and it compiles with out any problems.

Download the whole solution and compile it. The SimpleExample is part of the solution



May 3, 2010 at 1:49 AM

Ahhh, I think I figured it out what's happening,   The entire solution is compiled as .Net 2.0.   If the version is changed to .Net 3.5, you get the same error, along with many others.  I'm not sure exactly how to fix it.  Any ideas?