out-of-process

Out-of-process COM server without a proxy/stub DLL?

只愿长相守 提交于 2020-07-07 05:50:18
问题 I am learning how to implement an out-of-process COM server and came across this Code Project article, Building a LOCAL COM Server and Client: A Step by Step Example. I can build it, and it runs fine, but where is the proxy/stub DLL? All I can see is the IDL file from which the proxy/stub code is generated during the build. But how is the DLL built, and where is it? 回答1: The short answer is that all the interfaces are marked "oleautomation", so oleaut32.dll performs the marshaling, since COM

Accessing 32-bit DLLs from 64-bit code

此生再无相见时 提交于 2019-12-21 23:51:43
问题 I need to migrate a 32bit dll in order to use it in a 64bit C# (and also C++) applications. The dll is write in unmanaged delphi code. I can't recompile the dll and the only way is to use the interprocess communication (IPC). I search for a long time but i found not many information about. The best guide i found is in this link: Accessing 32-bit DLLs from 64-bit code. I followed this guide for achieve my goal because very often is quoted in this forum. So the guide explain I have to make

Out-of-process COM singletons

跟風遠走 提交于 2019-12-13 00:06:35
问题 I am dealing with a single-threaded library (not thread safe) that I want to wrap in a COM out-of-process object to get around its thread non-safety. I need a behavior where each new COM object is instantiated in its own process - some form of out-of-process singleton. It's been a while since I've been dealing with hardcore COM so I am not sure how to approach this or whether this is at all possible without some trickery. 回答1: Call CoRegisterClassObject() with the REGCLS argument set to

View Objects in Session of a Running ASP.NET Application

ぃ、小莉子 提交于 2019-12-06 09:57:06
问题 I am trying to move my app to out-of-proc session state and can't find which session object is failing to serialize - the YSOD stack trace is unrevealing. Is it possible to view the objects, or at least the types of objects, currently stored in session state of a running application? Short of attaching a debugger to a running app, and having its source code available, I don't know if this is possible. I'm using Alachisoft NCache, so here's their stack trace, though it's not helpful: System

View Objects in Session of a Running ASP.NET Application

拜拜、爱过 提交于 2019-12-04 18:42:01
I am trying to move my app to out-of-proc session state and can't find which session object is failing to serialize - the YSOD stack trace is unrevealing. Is it possible to view the objects, or at least the types of objects, currently stored in session state of a running application? Short of attaching a debugger to a running app, and having its source code available, I don't know if this is possible. I'm using Alachisoft NCache, so here's their stack trace, though it's not helpful: System.Web.HttpException (0x80004005): Unable to serialize the session state. In 'StateServer' and 'SQLServer'

SLAB, out-of-process: changing the signature of an event source method causes incorrect event logging

二次信任 提交于 2019-12-01 09:52:02
问题 I implemented an event source class for logging events. After repeatedly changing the signature (parameters names and parameters types) of one method that logs events, the events are no longer correctly logged. For instance when an event is logged, instead of setting the Payload with the current parameters name, the events are logged using the parameters used for the previous version of the method. Eg: Version n of the method: [Event(5, Message = "Action: {0}", Task = Tasks.PAGE, Keywords =