Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / August 2006

Tip: Looking for answers? Try searching our database.

COM Surrogate error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sean - 09 Aug 2006 01:19 GMT
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
TDC - 09 Aug 2006 13:31 GMT
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

> HI,
> We have a WinForms App written in C#. It's all 100% manged code. This app
[quoted text clipped - 35 lines]
>
> Thank you
Sean - 09 Aug 2006 16:51 GMT
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

> Isn't "Data execution prevention" a new Microsoft security feature that
> (I think) helps protect against buffer overrun-type vulnarabilities?
[quoted text clipped - 45 lines]
> >
> > Thank you
TDC - 09 Aug 2006 21:15 GMT
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

> Thank you TDC.
> Could be - I don't know. But if so:
[quoted text clipped - 52 lines]
> > >
> > > Thank you
Sean - 10 Aug 2006 01:11 GMT
Thanks Tom. This seems to work as far as we can tell.

> I can only imagine it is because only occasionally does ole32 (or
> whichever module) copy data into executable memory?
[quoted text clipped - 61 lines]
> > > >
> > > > Thank you
TDC - 10 Aug 2006 13:22 GMT
Out of curiosity, did you disable the DEP machine-wide or just for your
app?

> Thanks Tom. This seems to work as far as we can tell.
>
[quoted text clipped - 63 lines]
> > > > >
> > > > > Thank you

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.