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 382409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:10:47+00:00 2026-05-12T15:10:47+00:00

Background: We are currently looking at converting a piece of RTF text to a

  • 0

Background: We are currently looking at converting a piece of RTF text to a propriety format on a server.
We currently have some spike code using the Richtextbox in the System.Windows.Controls namespace to convert the text to xaml and run it through a xslt transform to the required format.

This works fine in the spike but have concerns that running this code in a production windows service may cause some issues down the track.
(We had issues previously on another piece of code that was using the System.Drawing namespace in a windows service).

I was wondering if anyone here would be able to tell me if they have used System.Windows.Controls in anger within a Windows Service and did they find it safe to use. Or if you had any issues, what were they?

  • 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-05-12T15:10:48+00:00Added an answer on May 12, 2026 at 3:10 pm

    I try to never use any controls in
    anger. Leads to the Dark Side it
    does…

    UI controls, and their methods, are typically not considered thread safe, so it will be up to you to do any synchronization. Dispose of what needs disposing and be diligent in your testing. You’d probably be ok.

    If it has an impact, it would be something insidious and indirect.

    For instance, using the XSLT transform you want to load it once and cache the instance. Otherwise, if you use an instance of it every time you need a transform you will generate a bunch of temporary assemblies that will eventually cause an OutOfMemoryException.

    The Microsoft KB, PRB: Cannot unload assemblies that you create and load by using script in XSLT has more information regarding this.

    Good luck!

    Z

    EDIT – removed reference to System.Drawing (with its warning) since I misread the original question.
    EDIT – added remark about UI controls and threadsafety

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

Sidebar

Related Questions

I currently have some code that cycles through a text file looking for a
I am developing in rails and have some programming background. I'm looking for help
Hello and thanks for looking! Background I currently have a C# method for looping
I'm looking for alternatives to Supersized. I'm currently using version 3.0 to show some
I currently have a Python 2.6 piece of code that runs two loops simultaneously.
Backgroup: We are looking at SAS BI Dashboard. We have currently implemented almost all
Background Currently, I am working on a Rails application. I have different products that
Background : I am currently using custom controls within my C# project (basic controls
Background : I'm currently, for my University, creating some simple apps showcasing the possible
Some background I'm currently working on a mobile site so I keep switching user

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.