all groups > dotnet interop > august 2006 >
You're in the

dotnet interop

group:

COM Surrogate error


COM Surrogate error Sean
8/8/2006 5:19:28 PM
dotnet interop:
HI,
We have a WinForms App written in C#. It's all 100% manged code. This app
monitor 4 Windows services that uses MSMQ to get and send messages from
another WinForms App.
One of the services interact with a CD printer API; Another is dowloading
files from a server using HTTP; and another is is interacting with Verisign
payment web services. Some of the services read and writes to a SQL server
(MSDE).

Ocassionally the app will display the following error message:

To help protect your computer, Windows has closed this program.
Name: COM Surrogate
Publisher: Microsoft Corporation

Once the user press the close message button the program is indeed
terminated. The title bar of the message window is: Data execution prevention
- Microsoft Windows.

The problem occure occasionally in production environment. We were never
able to reconstruct it on our dev environment and therefore we can't debug
it. We are not sure were to even start looking or what the error means. The
event viewer provide the following:

Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 08/04/2006
Time: 15:43:48
User: N/A
Computer: AAX44
Description:
Faulting application dllhost.exe, version 5.1.2600.2180, faulting module
ole32.dll, version 5.1.2600.2180, fault address 0x0001715e.

Any clues? Ideas? Solutions?

Thank you
Re: COM Surrogate error TDC
8/9/2006 5:31:15 AM
Isn't "Data execution prevention" a new Microsoft security feature that
(I think) helps protect against buffer overrun-type vulnarabilities?

I just installed Visual Studion 2003 on a new laptop and Ihad to turn
off the DEP in the boot.ini to allow the emulator to work. (How lame
is that, by the way..."Here's a great new feature, but if you are a
developer you have to turn it off")

Tom

[quoted text, click to view]
Re: COM Surrogate error Sean
8/9/2006 8:51:03 AM

Thank you TDC.
Could be - I don't know. But if so:
1. Why do we have this problem only occasionally?
2. Would it be wise to turn it of in production environment?

Sean

[quoted text, click to view]
Re: COM Surrogate error TDC
8/9/2006 1:15:20 PM
I can only imagine it is because only occasionally does ole32 (or
whichever module) copy data into executable memory?

Here's an article that may help:

http://support.microsoft.com/kb/875351/

Tom

[quoted text, click to view]
Re: COM Surrogate error Sean
8/9/2006 5:11:02 PM
Thanks Tom. This seems to work as far as we can tell.

[quoted text, click to view]
Re: COM Surrogate error TDC
8/10/2006 5:22:40 AM
Out of curiosity, did you disable the DEP machine-wide or just for your
app?

[quoted text, click to view]
AddThis Social Bookmark Button