Problem with Data Execution Prevention and java

Q

QSIDeveloper

Hosting an AxWebBrowser control in a C# 2.0 application we are trying to run
java applets. When running on server 2008 we gat the error ‘FATAL - Program
- Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.’

We know the problem is that Data Execution Prevention is on.

If we use Post Build Steps:
call "$(VS90COMNTOOLS)..\..\VC\bin\vcvars32.bat"
call "$(VS90COMNTOOLS)..\..\VC\bin\editbin.exe" /NXCOMPAT:NO "$(TargetPath)"

on the application this corrects the problem.

Is this inherent to using the AxWebBrowser control.
(We would use the ,NET browser but there are some event missing that we need.)

He question is there a way to accomplish this in code so we don’t need the
post build steps?

IS there a better way to host a browser?
 
C

Cor Ligthert[MVP]

A better way to host a browser in Net C#2.0 is the webbrowser class.

However, I don't assume it will solve your problem because like the
Axwebbrowser is just a wrapper around shdocvw.

Cor
 
C

Cor Ligthert[MVP]

A better way to host a browser in Net C#2.0 is the webbrowser class.

However, I don't assume it will solve your problem because like the
Axwebbrowser is just a wrapper around shdocvw.

Cor
 
J

Jialiang Ge [MSFT]

Hello QSIDeveloper

The issue under discussion is possibly related to this KB article
http://support.microsoft.com/kb/948468

I'm looking for known issues or relevant case histories in my support
database.

As you are on Windows Server 2008, the API SetProcessDEPPolicy can be of
assistance. See the Resolution section of
http://support.microsoft.com/kb/948468:
<quote>
The SetProcessDEPPolicy Function
(http://msdn2.microsoft.com/en-us/library/bb736299.aspx) , introduced in
Vista SP1 and Windows Server 2008, can be a better alternative, unless
system DEP policy is AlwaysOn.
</quote>

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
J

Jialiang Ge [MSFT]

Hello QSIDeveloper

The issue under discussion is possibly related to this KB article
http://support.microsoft.com/kb/948468

I'm looking for known issues or relevant case histories in my support
database.

As you are on Windows Server 2008, the API SetProcessDEPPolicy can be of
assistance. See the Resolution section of
http://support.microsoft.com/kb/948468:
<quote>
The SetProcessDEPPolicy Function
(http://msdn2.microsoft.com/en-us/library/bb736299.aspx) , introduced in
Vista SP1 and Windows Server 2008, can be a better alternative, unless
system DEP policy is AlwaysOn.
</quote>

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
J

Jialiang Ge [MSFT]

Hello QSIDeveloper ,

I am writing to check whether the suggestion of SetProcessDEPPolicy helps
you or not? If you need further assistance, feel free to let me know. I
will be more than happy to be of assistance.

Have a great day!

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
J

Jialiang Ge [MSFT]

Hello QSIDeveloper ,

I am writing to check whether the suggestion of SetProcessDEPPolicy helps
you or not? If you need further assistance, feel free to let me know. I
will be more than happy to be of assistance.

Have a great day!

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top