This is probably not the correct interpretation of this error.
The Win32 error above is more likely to indicate the actual problem.
Flags
Severity
Success
This code indicates success, rather than an error.
This may not be the correct interpretation of this code,
or possibly the program is handling errors incorrectly.
Delphi Berlin 10.1 adds [weak] references. Marco Cantu's Blog has some basics on it. For my test I created two COM libraries holding two automation object types. The container object holds a list of the content objects while the content objects holds a weak reference to their container. The following [...] read more
I am trying to create a COM object in Delphi and use it in a C# WPF project. I have created a new DLL project in Delphi 10.3, using File -> New -> Other, then Delphi -> Windows -> ActiveX Library. I have created the following IDL in the GUI [...] read more
I get an System.InvalidCastException runtime error when trying to pass an interface as a parameter from .NET to a DLL. The code fails on the .NET side and never makes it over to Delphi side. Construct a simple ActiveX library dll in Delphi. Two Automation Objects: MyContent and MyContainer. MyContainer [...] read more
This may be a very stupid question. Is it possible to debug a COM dll in VS2008 for which I do not have the source code? The reason I want to do this is I am passing an Array to a COM method and I expect this Array to be [...] read more
I am experimenting with creating a COM interface for my application in order to allow eg. VBA to drive certain parts of my application. I have my COM library up and running and installed, even to the part where a routine called in Excel can be debugged in the Delphi [...] read more
I'm creating a COM server to allow automation of my program by third party programs. Given that I need to pass around objects with lots of properties, I'm trying to create methods to create such objects for the clients to use. (The intention for this is to allow client programs [...] read more
Based on this article on DelphiDabbler, is it possible to include a pointer and/or function as calling parameter for callback purposes? Assuming i have declarations as follows: 1. Type Library (.idl file) interface IMyExternal: IDispatch { [id(0x000000C9)] HRESULT _stdcall RequestData([in] variant lparam, [in] variant wparam, [in] bstr strparam, [out, retval] [...] read more
I have .net 4.0 service that crashes from time to time, the code that is responsible for crash runs every few minutes on its own task with its own database context. After analyzing crash dump I get this managed call stack: (TransitionMU) 0DBFE30C 72720900 mscorlib_ni!System.DefaultBinder.SelectMethod(System.Reflection.BindingFlags, System.Reflection.MethodBase[], System.Type[], System.Reflection.ParameterModifier[])+0x84 0DBFE34C 7271CE3E [...] read more
I am having trouble implementing an event sink for DShellWindowsEvents from SHDocVw.dll in Microsoft Visual C++. The problem arises inside my implementation of IDispatch::Invoke. I implemented it by delegating its call to ITypeInfo::Invoke (as suggested by Microsoft on remarks section), but it always fails with error code 0x80020003 (Member not [...] read more
I have made a COM object with multiple dual interfaces. It worked in an earlier version of compiler, but not in the current version. My question: Does the COM spec say this should work (and therefore I should report a compiler bug), or is not meant to work? This page [...] read more