Crash when using webbroswer control in Vista

L

linuxfedora

I have read the related document on the Interenet

Attempted to read or write protected memory. This is often an
indication that other memory is corrupt.

http://jtstroup.net/post/Attempted-...-indication-that-other-memory-is-corrupt.aspx

And i follow their comment:
1) Right click on project in Visual Studio

2) Properties

3) Build Events

4) Edit Post Build ...



REM Mark project as DEP Noncompliant

call "$(DevEnvDir)..\..\VC\bin\vcvars32.bat"

call "$(DevEnvDir)..\..\VC\bin\editbin.exe" /NXCOMPAT:NO "$
(TargetPath)"

However, when i use the setup and Deployment and use the project
output, it seems reset the settings.

So, how could i solve it?

My setup project has Custom Action from the Primary output. So i must
use the project output, not just the built exe..
 
P

Peter Duniho

linuxfedora said:
[...]
REM Mark project as DEP Noncompliant

call "$(DevEnvDir)..\..\VC\bin\vcvars32.bat"

call "$(DevEnvDir)..\..\VC\bin\editbin.exe" /NXCOMPAT:NO "$
(TargetPath)"

However, when i use the setup and Deployment and use the project
output, it seems reset the settings.

So, how could i solve it?

My setup project has Custom Action from the Primary output. So i must
use the project output, not just the built exe..

The WebBrowser control does not normally crash, even with DEP enabled.
So even assuming DEP is really the problem, and even if disabling DEP
makes the crash go away, unless you know _why_ DEP is being triggered
and have proven for yourself that it's a benign false positive,
disabling DEP would be a very bad idea.

I don't have any first-hand information about why the modification to
your output .exe seems to not "stick" when you use "Setup and
Deployment". Obviously, the first thing to do would be to verify that
the .exe being modified by the custom build step is actually the same
..exe that is being used by the "Setup and Deployment". Then, depending
on what you find there, you can look at why the change is being removed,
or why you're not getting the same file as output as the one you've changed.

But really, you should be looking harder at if DEP is really the
problem, and if so why. You should be able to run with the WebBrowser
control just fine, even with DEP active.

Pete
 

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