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

  • SEARCH
  • Home
  • 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 421931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:01:53+00:00 2026-05-12T19:01:53+00:00

I’m involved in a project which is able to connect to different hardware devices

  • 0

I’m involved in a project which is able to connect to different hardware devices on the fly. We’ve been assigned to make a Touch Screen GUI so we have a MMI to the devices.

As any device (and any type of device) potentially can connect to our framework, we’ve decided to let 3rd party device developers make their own GUI plugin. All is fine and dandy this far 🙂

The real problem is, that our manager wants these GUIs to be able to execute some forms of control flows, and he dont want us to have our own DSL – So, as we’re doing the GUI in WPF, they must be able to execute MSIL. This is a huge security threat, and I’ve told him that, but as it’s a prototype, he says it’s fine. Alrighty, fine it is.
There’s another problem though – Arbitrary MSIL might crash or deadlock, so we need to host it in some sort of async context. Since WPF doesn’t allow more than one thread to access the GUI, we’ve goit ourselves a complex scenario..

So far, I’ve been rather short on ideas on how to solve this. My best bet is to split the GUI part and the code part into 2 things: Raw Xaml for the GUI, and MSIL hosted in another thread for the code. I then need to create a facade (On runtime?) to link the GUI and the MSIL together by sending calls to each others threads.
I can do this, not a problem, but I think it’s really smelly. You’re forcing other developers to use MVVM without code behind, I’m unsure if I can support all bindings, and I don’t like that the View and the ViewModel are in seperate threads (Well, I don’t mind it, but I’m unsure if it could cause problems, since this design would be very transparent to the plugin developer, so he prolly wouldn’t consider making stuff threadsafe).

Does anyone have any ideas on how to design this? Or thoughts on the requirements? Any kind of feedback would be nice.

  • 1 1 Answer
  • 1 View
  • 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-05-12T19:01:54+00:00Added an answer on May 12, 2026 at 7:01 pm

    I’ll try and give you a different answer. Unfortunately I don’t think you are going to have an easy time of it. It DOES sound interesting though 🙂

    • Host your plugins in separate applications by using some kind of app starting code which you control.
    • Use this mechanism to set up the security the way you want it (disallow access to filesystem, internet, etc)
    • Use WCF with local-computer binary mode for communication. You were going to provide some kind of API anyway so this will probably not add too much overhead from what you would have done.
    • Host the plugins in a window with no border and position it manually over your main application window. (I used to work on a project where we did this with a few Office apps. It can work remarkably well) You will probably spend the most time getting this right. Some little hacker is going to feel like a hero though! 🙂
    • Do some resource sharing on the DLL level (UI skinning, look and feel, common controls and what-not)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.