I was wondering what sort of changes I need to make in order to make an
application to be DEP compatible with on Windows XP x64 version 2003.
I have compiled an open source C application
(japach: http://www.jikos.cz/jikos/japach/) but when I ran it on Windows
with DEP turned on, I get a core file and inside that, it says
"STATUS_ACCESS_ VIOLATION". After searching through Google, most of the
results came back were on making an exception to the application that
isn't compatible through system settings. Is there a way to make it
compatible by making changes in the code?
Patrick 5 6444
P wrote:
I was wondering what sort of changes I need to make in order to make an
application to be DEP compatible with on Windows XP x64 version 2003.
I have compiled an open source C application
(japach:http://www.jikos.cz/jikos/japach/) but when I ran it on Windows
with DEP turned on, I get a core file and inside that, it says
"STATUS_ACCESS_ VIOLATION". After searching through Google, most of the
results came back were on making an exception to the application that
isn't compatible through system settings. Is there a way to make it
compatible by making changes in the code?
Patrick
All this is intricately linked with OS level details. As this group
tries to confine itself to standard C, please post to a group under
comp.os.ms-windows.* hierarchy, or to MSDN forums.
P wrote:
I was wondering what sort of changes I need to make in order to make an
application to be DEP compatible with on Windows XP x64 version 2003.
That's conceptually easy; fix the errors your program contains. If your
program is strictly conforming C (or rather, just well-behaved C) it should
never trigger the DEP mechanism.
I have compiled an open source C application
(japach:http://www.jikos.cz/jikos/japach/) but when I ran it on Windows
with DEP turned on, I get a core file and inside that, it says
"STATUS_ACCESS_ VIOLATION".
I took a brief look at that program; it appears to be targeting UNIX-like
platforms and there's no mention of Windows support. If you can compile it
at all, it's still quite likely that the assumptions the program makes are
wrong (pay particular attention to any warnings your compiler emits; these
are not to be ignored). The core dump is just an indication that the program
isn't running the way it expected to.
After searching through Google, most of the results came back were on
making an exception to the application that isn't compatible through
system settings. Is there a way to make it compatible by making changes
in the code?
Not unless you want to invest some time in finding and fixing whatever is
causing the program to misbehave on Windows, which could be anything from an
incomplete library implementation to a data type mismatch. Turning off DEP
is a waste of time; it's very unlikely the program will run any better, and
triggering DEP is always an indication of either an error or an unportable
trick/hack that in standard C would be undefined behavior.
Try googling for "Cygwin" and "MinGW" for general information on how to
compile UNIX applications on Windows, and find appropriate newsgroups (like
comp.unix.progr ammer and comp.os.ms-windows.program mer) for questions about
OS-specific constructs (which are off-topic here).
S.
Not unless you want to invest some time in finding and fixing whatever is
causing the program to misbehave on Windows, which could be anything from an
incomplete library implementation to a data type mismatch. Turning off DEP
is a waste of time; it's very unlikely the program will run any better, and
triggering DEP is always an indication of either an error or an unportable
trick/hack that in standard C would be undefined behavior.
Try googling for "Cygwin" and "MinGW" for general information on how to
compile UNIX applications on Windows, and find appropriate newsgroups (like
comp.unix.progr ammer and comp.os.ms-windows.program mer) for questions about
OS-specific constructs (which are off-topic here).
S.
I forgot to mention I'm compiling in cygwin and it's working in windows
that don't come with DEP and windows with DEP but it's turned off. I
will post in those groups. Thanks.
Patrick
P wrote:
I was wondering what sort of changes I need to make in order to make an
application to be DEP compatible with on Windows XP x64 version 2003.
I have compiled an open source C application
(japach:http://www.jikos.cz/jikos/japach/) but when I ran it on Windows
with DEP turned on, I get a core file and inside that, it says
"STATUS_ACCESS_ VIOLATION". After searching through Google, most of the
results came back were on making an exception to the application that
isn't compatible through system settings. Is there a way to make it
compatible by making changes in the code?
I've downloaded and attempted to compile it (linux 2.4). It won't
compile due to exit being called with no arguments.
After fixing all the calls to exit, it compiles and (seems to) run
fine.
After adding "-W -Wall" to the CFLAGS variable in the makefile,
it generates a *ton* of warnings including:
1. return without a value in functions declared as
returning non-void.
2. trampling over the std c libs namespaces; essentially
redefining "log"
3. falling of the end of functions declared as returning
a value.
4. implicit declaration of "free" - implies a missing include
directive.
5. ambiguity in assignment/comparison.
6. unused variables.
7. no declarations for some functions.
8. redefinition of #defines.
9. signed/unsigned comparison.
I suspect that the problem is not with DEP, but with the fact
that the program does so many illegal things that it's bound
to crash under some configurations.
Maybe you could try to fix all the warnings and give it another
try?
goose,
I've downloaded and attempted to compile it (linux 2.4). It won't
compile due to exit being called with no arguments.
After fixing all the calls to exit, it compiles and (seems to) run
fine.
After adding "-W -Wall" to the CFLAGS variable in the makefile,
it generates a *ton* of warnings including:
1. return without a value in functions declared as
returning non-void.
2. trampling over the std c libs namespaces; essentially
redefining "log"
3. falling of the end of functions declared as returning
a value.
4. implicit declaration of "free" - implies a missing include
directive.
5. ambiguity in assignment/comparison.
6. unused variables.
7. no declarations for some functions.
8. redefinition of #defines.
9. signed/unsigned comparison.
I suspect that the problem is not with DEP, but with the fact
that the program does so many illegal things that it's bound
to crash under some configurations.
Maybe you could try to fix all the warnings and give it another
try?
goose,
Hi goose,
Thanks! I've turned on the CFLAGS and fixed all the warnings. I'm
able to run it without having to turn off DEP. I'm not sure if this
was happening before but now I'm noticing the memory usage
progressively increments after a number of files being served.
Thanks for your help!
Patrick This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John Edwards |
last post by:
Hello,
I have sort of a newbie question. I'm trying to optimize a loop by
breaking it into two
passes.
Example:
for(i = 0; i < max; i++)
{
|
by: john woo |
last post by:
Hi
Please see the following simple script:
<TD align="Left" width="30%" >
<select name="DEPARTMENT" SIZE ="1" style="width:200px;"
onChange="Change()">
<option value="0"> <ALL>
<option value="1000012" >Food Sales
<option value="1000014" >Dessert Sales
|
by: Michel Sanner |
last post by:
Hello,
One of the greatest feature of Python in my opinion is the way the
interpreter can be used to integrate a wide variety of
software packages by dynamically linking them. This approach has been
extremely successful for us so far but now I run
into a license nightmare.
Some the libraries we wrapped using SWIG are under GPL but the
applications we are distributing are not (mainly because
|
by: scottyman |
last post by:
I can't make this script work properly. I've gone as far as I can with
it and the rest is out of my ability. I can do some html editing but
I'm lost in the Java world. The script at the bottom of the html page
controls the form fields that are required. It doesn't function like
it's supposed to and I can leave all the fields blank and it still
submits the form. Also I can't get it to transfer the file in the
upload section. The file name...
|
by: Sabiyur |
last post by:
Hi all,
one of the recent post gives the macro to do swap
#define SWAP(m, n) (tmp = (m), (m) = (n), (n) = tmp)
This macro will work, if the execution is from left to right.
That is step 1) tmp=m
step 2) m=n
step 3) n=tmp
| |
by: dunleav1 |
last post by:
Does enabling/disabling Data Execution Prevention (DEP) have a
performance
impact on SQL 2000 or SQL 2005?
|
by: zzw8206262001 |
last post by:
Hi,I find a way to make javescript more like c++ or pyhon
There is the sample code:
function Father(self) //every contructor may have "self"
argument
{
self=self?self:this; //every class may have this statement
self.hello = function()
{
|
by: tomPee |
last post by:
Hi,
I have no idea if this is the right section to post this in. But i thought it maybe belonged here most.
The problem i having is actually, most likely really simple. But here i am running for help. I have read a lot about make files, but well, not a single one actually sais something about the approach i'm using.
Which ofcourse might perfectly mean i'm doing something completely wrong. :P.
Well, I'll cut the case.
|
by: =?Utf-8?B?TWFnaWNQYXdz?= |
last post by:
Hi, I have a folder in My Documents which contains a digital scrapbooking
kit, and whenever I click on the folder I get the dreaded DEP message ... it
is a paid for kit, and therefore ? unlikely to be a problematic file, but I'm
so fed up with it that I'd like to just delete the thing ... the problem is,
I can't delete it because the DEP thing happens before I get the chance to
delete it! Grrrrr! :)
This happened before, (with a kit from...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |