Questions tagged [mta]

Multiple Threaded Apartment of the Component Object Model (COM), as opposed to STA

MTA refers to the Multiple Threaded Apartment of Microsoft's Component Object Model (COM). Its opposite is the Single-Threaded Apartment (MTA), but there is also a Neutral Apartment.

Related tags:

References:

110 questions
0
votes
0 answers

Sending messages to STA thread

I have read little bit about COM threading model: MTA and STA, for example this SO post: Difference between MTA and STA There we can read that to communicate with object within STA we need to pump messages to this apartament. My question is how to…
Michał Turczyn
  • 32,028
  • 14
  • 47
  • 69
0
votes
1 answer

How to change powershell "pwsh" to STA ApartmentState

I'm trying to port some scripts from poweshell 5.0 to the new pwsh powershell 6 and i've noticed that there is no -sta parameter anymore. How can I set the ApartmentState of pwsh? I can;t find anything about it and it looks like it's defined in…
Marco
  • 984
  • 10
  • 18
0
votes
0 answers

Method call on a STA COM component is hung

we have an .NET application which uses a COM dll, the ThreadingModel of this component is "Appartment" The Application always hangs calling a COM interface method. the DebugDiag analysis says the following The finalizer thread is probably tring to…
user2101801
  • 719
  • 2
  • 8
  • 20
0
votes
3 answers

MTA & HTML Login & Remember Me

I'm trying to solve one HTML input bar so I can remember the MTA server username and password Login is available here: http://ru1n.eu/index.php?/topic/3-rel-login-panel/ and I found some javascript for remembering and i do not know how to make a…
Ru1n
  • 7
  • 2
0
votes
3 answers

Getting value from nested JSON

I am attempting to parse through the following JSON data and console.log all the times for stop_ids of a specific value. So when I would select the stop ID "L26S", the console would log each instance that the stop time occurs within the JSON. The…
emmodz
  • 3
  • 1
0
votes
1 answer

Visual Studio 2015: Run tests using MSTest in a Multi Threaded Apartment

I cannot find a way to do this for MSTest in Visual Studio 2015. How do you specify the apartment state to be MTA for all running tests?
Asher
  • 1,016
  • 1
  • 6
  • 20
0
votes
0 answers

MTA and TPL in .Net

I have a two fold question. 1.) I am using a third party library to build an application and it is all based in .NET so I am forced to use this(I usually develop in native C++). One of the methods I need to call says in the documentation This…
MDK
  • 495
  • 1
  • 6
  • 18
0
votes
2 answers

Dovecot Object Storage Plugin

I know this isn't a very technical question; but where can I find the high-latency object storage addon for amazon s3? The official Open-Xchange site link gives a 404 to the 'Dovecot Store'. I've been restlessly trying to have this done for quite…
jesmaestro
  • 13
  • 1
  • 5
0
votes
1 answer

postfix: automatically save emails as eml or msg in a separate folder

For my business activity I have a very simple Debian + Postfix + Dovecot mail server. Mails are saved under /var/mail/ in an MBox file. procmail is not installed. For spam filtering I have a mail gateway - scrollout on a virtual machine. Mail users…
silvered.dragon
  • 407
  • 1
  • 7
  • 19
0
votes
1 answer

Who is responsible for storing emails to the filesystem IMAP or SMTP?

I was studying about MTA and came through SMTP & IMAP, and read that SMTP is responsible for delivering email across the servers, and client uses IMAP/POP3 to read the emails from server. So IMAP/SMTP these are just protocot, Postfix is known as…
vivex
  • 2,496
  • 1
  • 25
  • 30
0
votes
0 answers

When calling EnumThreadWindows - what is the association between non-GUI threads and the enumerated windows?

I am reviewing some code where MTA threads are calling making a call to EnumThreadWindows with their thread ID and looking for a Window with a particular class name. This window is created by an STA COM object explicitly for the purpose of tying an…
Hans
  • 83
  • 1
  • 8
0
votes
0 answers

c# force call to out of process COM server from MTA thread to call back into same thread

I am writing a DLL that is called by a third party application. The DLL is called from an MTA thread and any calls back to the third party application must be done on the same thread. From my application I need to call to an out of process COM…
Adriaan
  • 144
  • 13
0
votes
0 answers

I have a error in make a new MainWindow in wpf

I have a error in my wpf project. When I want make a new from MainWindow in The following code: public App() { System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); …
Amin
  • 387
  • 1
  • 6
  • 17
0
votes
1 answer

ThreadingModel Free crashes the WCF service

I have a non-singleton WCF (standalone) service running some COM objects. In non-WCF environments, using Thread.Start, these COM objects happily run in parallel in different threads, utilising all CPUs and completing around the same time. However,…
Vadim Berman
  • 1,932
  • 1
  • 20
  • 39
0
votes
1 answer

ElementHost does not work in MTAThread

I have WPF User Control which needs to hosted inside Windows Form in MTAThread. And solution should work with both STAThread and MTAThread. And technically there is no option to change the Apartment State in production…
Saqwes
  • 325
  • 3
  • 12