com

How do I debug a .net Fatal Execution Engine Error?

三世轮回 提交于 2019-12-04 08:05:35
As a developer, I'm trying to setup a development environment on our brand new VMWare ESX server. Things are not working out: somewhere during the SharePoint Product & Technologies Configuration Wizard, the application just disappears, and in the event log I find the following error: .NET Runtime version 2.0.50727.3082 - Fatal Execution Engine Error (7A0979C6) (80131506) Now I know all this sounds suspiciously like a ServerFault.com style problem (and a very generic error message, lots of similar hits on google), and of course we are addressing the issue in such a way (installing/uninstalling

Python win32 com : how to handle 'out' parameter?

我怕爱的太早我们不能终老 提交于 2019-12-04 07:43:12
I need to access a third-party COM server with following interface definition (idl): interface IDisplay : IDispatch { HRESULT getFramebuffer ( [in] ULONG aScreenId, [out] IFramebuffer * * aFramebuffer, [out] LONG * aXOrigin, [out] LONG * aYOrigin ); }; As you can see, it returns 3 values via [out] parameter modificators. How to handle this via python win32 COM api? For example, i create an object and get IDisplay from it: object = win32com.client.Dispatch( "VirtualBox.VirtualBox" ) display = object.display How to call display.getFrameBuffer() so it will work? I have tried different ways, but

What is the Difference between .NET components and COM Components

孤街醉人 提交于 2019-12-04 07:37:52
问题 What is the Difference between .NET components and COM Components, sometimes we use .NET Components to include in our projects and sometimes we include COM reference. What is the idea behind? 回答1: .NET components are managed code (memory disposal is done for you) COM is an interface standard for software components. COM components are unmanaged code (memory disposal is performed using reference counting). From here: How are COM and .NET related? COM and .NET are complementary development

WiX: register .NET COM component both x86 x64

六月ゝ 毕业季﹏ 提交于 2019-12-04 07:24:36
I have C# COM .dll. I would like to install the .dll once, but have it be registered for both x86 and x64. Here's the WiX I have for registering only x64: <Component Id="NETDLL.dll" Directory="INSTALLDIR"> <File Id="NETDLL.dll" Name="NETDLL.dll" KeyPath="yes" Source="..\NETDLL.dll" /> <Class Id="{78BE...}" Context="InprocServer32" Description="NETDLL" ThreadingModel="both" ForeignServer="mscoree.dll"> <ProgId Id="NETDLL" Description="NETDLL" /> </Class> <RegistryValue Root="HKCR" Key="CLSID\{78BE...}\Implemented Categories\{62C8FE65-4EBB-45e7-B440-6E39B2CDBF29}" Value="" Type="string" Action=

tlbexp.exe changes method names' case

℡╲_俬逩灬. 提交于 2019-12-04 07:09:04
I have a rather strange problem. I am exporting an interface from a C# library to COM. I have enabled the 'register with COM' project setting, so it calls tlbexp.exe to make the type libs. We use camel case on our method names and I noticed that the exported type library changes these any method that happens to coincide with a class name to Pascal case... e.g interface IFoo { void randomClass() } class RandomClass { } The exported IFoo in the type lib defines IFoo->RandomClass() instead of IFoo->randomClass() Any ideas on what causes this and how to stop it? Since COM is case-insensitive, both

Proper way of closing Excel application

蓝咒 提交于 2019-12-04 07:00:32
问题 I'm writing an application, which accesses Excel file with this code: RBTApplication = new Excel.Application(); RBTWorkbooks = RBTApplication.Workbooks; RBTWorkbook = RBTApplication.Workbooks.Open( RBTDataSet.Instance.FilePath, 0, true, 5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", true, false, 0, true, 1, 0 ); RBTWorksheet = (Excel.Worksheet)RBTWorkbook.Worksheets.get_Item( 1 ); RBTRange = RBTWorksheet.UsedRange; After I load data that I need, I try to close

How can C# use a legacy DLL simply without registration(regsvr32)

拟墨画扇 提交于 2019-12-04 06:47:00
Situation I run a build system that executes many builds for many project. To avoid one build impacting another we lock down the build user to only its workspace. Builds run as a non privileged users who only have write ability to the workspace. Challenge During our new build we need to use a legacy 3rdparty DLL that exposes its interface through COM. The dev team wants to register the build(regsrv32.exe) but our build security regime blocks this activity. If we relax the regime then the 3rdparty DLL will impact other builds and if I have two build which need two different versions I may have

Why does this code throw System.AccessViolationException when called from a C# project targeting Any CPU?

放肆的年华 提交于 2019-12-04 06:46:42
问题 I have this IDL in my ATL project: [ object, uuid(61B0BFF7-E9DF-4D7E-AFE6-49CC67245257), dual, nonextensible, pointer_default(unique) ] interface ICrappyCOMService : IDispatch { typedef [ uuid(C65F8DE6-EDEF-479C-BD3B-17EC3F9E4A3E), version(1.0) ] struct CrapStructure { INT ErrorCode; BSTR ErrorMessage; } CrapStructure; [id(1)] HRESULT TestCrap([in] INT errorCode, [in] BSTR errorMessage, [in, out] CrapStructure *crapStructure); }; [ uuid(763B8CA0-16DD-48C8-BB31-3ECD9B9DE441), version(1.0), ]

get word document count and number of slides count in PPT

纵然是瞬间 提交于 2019-12-04 06:45:33
问题 Is it possible to get the number of pages in word document or number of slides in a ppt. I have done a lot of research on it and i am desperately looking for solution. I saw that it is very difficult to get it done in PHP on linux server. I would be ok with Java also, but is it possible. I checked the apache POI library, but would it work for both PPT, PPTX, doc and docx. I am rigorously searching for some solution but i am unable to get one. Any help would be really really appreciated. 回答1:

Visual Studio 2010 automation and environment variables

柔情痞子 提交于 2019-12-04 06:03:50
I am opening VS2010 solutions using C# and VS2010 automation. I open the solutions like this: Type type = Type.GetTypeFromProgID("VisualStudio.DTE.10.0", true); Object comObject = Activator.CreateInstance(type); ... sol.Open(solution_full_path); The problem I am having is that when I create the instance of the VisualStudio.DTE.10.0 object, it starts the devenv.exe process from winlogon.exe which sees completely different environment than my application. Some of the environment variables are important for resolving some paths set in projects. Is there any how I can influence the environment