Cannot instantiate delphi written application.exe using IIS, MVC4, C# and COM

可紊 提交于 2019-12-06 03:01:41

Depending on the user IIS is running under this could be a problem where the non-interactive desktop heap size is an issue. I've ran into this problem involving windows services.

When you run your test application most likely you are running under a different user. You can try adjusting the non-interactive desktop heap size in the registry to see if it resolves this issue:

Below is taken from KB 126962

To correct this problem, increase the size of the desktop heap: Run Registry Editor (Regedt32.exe). From the HKEY_LOCAL_MACHINE subtree, go to the following key: \System\CurrentControlSet\Control\Session Manager\SubSystems Select the Windows value. From the Edit menu, choose String. Increase the SharedSection parameter.

For Windows NT: SharedSection specifies the system and desktop heaps using the following format: SharedSection=xxxx,yyyy Add ",256" or ",512" after the yyyy number.

For Windows 2000, Windows XP, and Windows Server 2003: SharedSection uses the following format to specify the system and desktop heaps: SharedSection=xxxx,yyyy,zzzz For 32-bit operating systems, increase the yyyy value to "12288"; Increase the zzzz value to "1024". For 64-bit operating systems, increase the yyyy value to "20480"; Increase the zzzz value to "1024".

Here is also a similar article for windows vista / 7 KB 947246

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!