Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Windows XP Windows XP
Search Search
Search for:
Tech Support Guy > > >

Solved: application failed to initialize properly 0xc0000005


(!)

Ronaldr's Avatar
Ronaldr Ronaldr is offline
Junior Member with 5 posts.
THREAD STARTER
 
Join Date: Dec 2007
Experience: Advanced
27-Dec-2007, 03:20 PM #1
Question Solved: application failed to initialize properly 0xc0000005
Hi Guys,

So I have been having this issue with a program crashing and displaying a error message. Also just a note, This problem is happening on a windows xp pro machine. When the icon to start the application is clicked the program automatically displays the error. So I never actually get into the application. The error message reads "application failed to initialize properly 0xc0000005" (0xc0000005 means an access violation memory error occurred)

Now this is odd because the program works on other computers(of all different types)amd64, amd64x2, Intel core2duo, Intel celeron D, and a regular Intel P4 board. All with various different rams and such, leading me to assume this is not a hardware problem.

I have tried to use the built in program error debugger in windows "Dr. Watson" to get a error log. but for some reason the program does write to the file.

If anyone knows of any common problems associated with this error or fixes for it, please let know.

-Thanks
zabusant's Avatar
Computer Specs
Senior Member with 2,584 posts.
 
Join Date: Sep 2007
Experience: I win some, I lose some!
27-Dec-2007, 03:46 PM #2
Which application?
Ronaldr's Avatar
Ronaldr Ronaldr is offline
Junior Member with 5 posts.
THREAD STARTER
 
Join Date: Dec 2007
Experience: Advanced
27-Dec-2007, 04:08 PM #3
The application is Intelleview Remote client software for DVR equipment....we are developing the software....its just this error on a few machines we cant tackle for some reason...
zabusant's Avatar
Computer Specs
Senior Member with 2,584 posts.
 
Join Date: Sep 2007
Experience: I win some, I lose some!
27-Dec-2007, 04:11 PM #4
Is the hardware config the same on all machines?

EDIT: sorry, just read what you wrote in the first post
zabusant's Avatar
Computer Specs
Senior Member with 2,584 posts.
 
Join Date: Sep 2007
Experience: I win some, I lose some!
27-Dec-2007, 04:14 PM #5
This is from an article:

In Windows XP Service Pack 2 Microsoft introduced Data execution prevention (DEP), a set of hardware and software technologies that perform additional checks on memory to help protect against malicious code exploits. In Windows XP SP2, DEP is enforced by both hardware and software.

Some software/application behaviours are incompatible with DEP - data execution prevention. Applications which perform dynamic code generation (such as Just-In-Time code generation) and that do not explicitly mark generated code with Execute permission might have compatibility issues with data execution prevention. Applications which are not built with SafeSEH must have their exception handlers located in executable memory regions.

Applications that attempt to violate DEP will receive an exception with status code STATUS_ACCESS_VIOLATION (0xC0000005).

If an application requires executable memory, it must explicitly set this attribute on the appropriate memory by specifying PAGE_EXECUTE, PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE or PAGE_EXECUTE_WRITECOPY in the memory protection argument of the Virtual* memory allocation functions.

If you are having issues with 0xC0000005 errors in DEP and a particular piece of software is causing the offence, contact the vendor for a resolution...

Note: It is possible to "Turn Off" DEP in the boot.ini file but this really would be a last step!

/NOEXECUTE

This option is only available on 32-bit versions of Windows when running on processors supporting no-execute protection. It enables no-execute protection (also known as Data Execution Protection - DEP), which results in the Memory Manager marking pages containing data as no-execute so that they cannot be executed as code. This can be useful for preventing malicious code from exploiting buffer overflow bugs with unexpected program input in order to execute arbitrary code. No-execute protection is always enabled on 64-bit versions of Windows on processors that support no-execute protection.

There are several options you can specify with this switch:

/NOEXECUTE=OPTIN Enables DEP for core system images and those specified in the DEP configuration dialog.

/NOEXECUTE=OPTOUT Enables DEP for all images except those specified in the DEP configuration dialog.

/NOEXECUTE=ALWAYSON Enables DEP on all images.

/NOEXECUTE=ALWAYSOFF Disables DEP. (This setting doesn't provide any DEP coverage for any part of the system, regardless of hardware DEP support. The processor doesn't run in Physical Address Extension (PAE) mode unless the /PAE option is present in the boot.ini file.)

You can read more about DEP at:

http://www.updatexp.com/data-execution-prevention.html

If not all machines have the same updates installed, this could be something to look into.

Last edited by zabusant; 27-Dec-2007 at 04:20 PM..
Ronaldr's Avatar
Ronaldr Ronaldr is offline
Junior Member with 5 posts.
THREAD STARTER
 
Join Date: Dec 2007
Experience: Advanced
27-Dec-2007, 04:28 PM #6
We have attempted to disable DEP using both the /optin with and adding an exception of the program in question, and also using the /allwaysoff option in the boot.ini file. Neither had seemed to work for us. Furthermore, on other systems with DEP enabled this program works fine. So I don't think this is an issue related to DEP. Moreover, this is not a vendor based product, but instead its a program that we are developing using Borland C++ version 6. Is it possible that the hosts in question have different versions of certain DLL files that are not compatible with our program, and if so how can I test this?
zabusant's Avatar
Computer Specs
Senior Member with 2,584 posts.
 
Join Date: Sep 2007
Experience: I win some, I lose some!
27-Dec-2007, 05:09 PM #7
Well, I guess you could check the versions manually and compare them to the ones on the "working machine". How you would check for compatibility, I have no idea.

Have you tried the more general troubleshooting - disabling any anti-virus/firewall/script blocking software?

And this idea is a bit out there, but try running it in different compatibility modes (sometimes inexplicably helps with problems in my experience)

Last edited by zabusant; 27-Dec-2007 at 05:26 PM..
zabusant's Avatar
Computer Specs
Senior Member with 2,584 posts.
 
Join Date: Sep 2007
Experience: I win some, I lose some!
27-Dec-2007, 05:34 PM #8
If this is only happening on one machine, you could try the old "sfc /scannow".
Ronaldr's Avatar
Ronaldr Ronaldr is offline
Junior Member with 5 posts.
THREAD STARTER
 
Join Date: Dec 2007
Experience: Advanced
27-Dec-2007, 06:22 PM #9
I will double check that all the firewall/script settings are off and give the sfc/scannow a try... Ill get back to you and let you know how it went
Ronaldr's Avatar
Ronaldr Ronaldr is offline
Junior Member with 5 posts.
THREAD STARTER
 
Join Date: Dec 2007
Experience: Advanced
27-Dec-2007, 06:54 PM #10
We just figured it out...I used the olly debugger to find the modules it was accessing....the program was written in borland C++ ...Turns out the program needed a old borland DLL file from 2004 and the Borland DLL file he had was newer 2006...incompatible....replaced it with the old version and it worked fine...

anyways thanks for the reply,
its always nice when someone does

take care
zabusant's Avatar
Computer Specs
Senior Member with 2,584 posts.
 
Join Date: Sep 2007
Experience: I win some, I lose some!
27-Dec-2007, 07:05 PM #11
Glad you got it figured out!

You can mark the thread solved using "thread tools" on the top of the page.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑