Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7858791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:36:03+00:00 2026-06-02T21:36:03+00:00

F# code targeted for xbox360 using xna does not compile after I convert the

  • 0

F# code targeted for xbox360 using xna does not compile after I convert the project to a portable class library.

let thread = Thread(fun () ->
    setAffinity()

Thread gets red squiggles and the error message says

Error 1 This type has no accessible object constructors

Sure enough, if I look at mscorlib in the object explorer, the type has no constructor.
Yet according to MSDN the constructor exists on xbox and in the PCL.

Edit: I tried with a C# PCL, and I got the same error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T21:36:09+00:00Added an answer on June 2, 2026 at 9:36 pm

    Creating threads is not portable. Your link is wrong, it doesn’t talk about PCL.

    This is the cost of using the Portable Class Library, it is what’s left over after subtracting everything that isn’t supported by at least one of the possible targets. Which doesn’t leave much, the PCL is quite small. The biggest hang-up is a target that isn’t actually mentioned as supported, yet, WinRT (aka Metro). It has a severely restricted api.

    Consider ThreadPool.QueueUserWorkItem() instead. I assume that Task is going to be supported some day in the PCL. It is a work in progress right now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a simple XNA Windows Class Library with XNA 4.0 called NivekGameEngine.
I'm writing a web-server in Python as a hobby project. The code is targeted
My code is using a third party library that employ a singleton pattern deep
Alchemy allows users to compile C and C++ code that is targeted to run
I'm working on a project to convert an ancient Solaris (sparc) targeted application to
Code is as follows but I get a ytplayer is not defined error. Is
Code: var result = db.rows.Take(30).ToList().Select(a => AMethod(a)); db.rows.Take(30) is Linq-To-SQL I am using ToList()
There are a few minor places where code for my project may be able
(using http://code.google.com/p/svgweb/ ) window.onsvgload = function() { function onEnter(e) { var targ; if (!e)
I am developing a website using forms and one of the browsers being targeted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.