Home All Groups Group Topic Archive Search About
Author
19 Mar 2006 8:00 PM
Ben628751
Whenever I try to run a program that I have coded (Console and Win32 types),
i get the following error message:

The application failed to initialize properly (0xc0000005)

I have double checked the entire source code, and my PC meets and exceeds
the requirements. The same problem occurs on Visual C# 2005 Express Edition.
Does anyone know a way to fix this problem? Any help given will be extremely
appreciated. Thank you.

Author
19 Mar 2006 11:20 PM
ralph
"Ben628751" wrote:

> Whenever I try to run a program that I have coded (Console and Win32 types),
> i get the following error message:
>
> The application failed to initialize properly (0xc0000005)
>
> I have double checked the entire source code, and my PC meets and exceeds
> the requirements. The same problem occurs on Visual C# 2005 Express Edition.
> Does anyone know a way to fix this problem? Any help given will be extremely
> appreciated. Thank you.

This ubiquitous error indicates an "Access Violation", ie, some call in some
component has attempted to dereference a pointer that has an address outside
the address space of the program attempting to use it. It is often caused by
an "uninitialized pointer".

It is highly doubtful that your 'coding' is responsible. The most common
cause for the situation you are describing is a mismatched 'system'
component. Perhaps, the OLE suite, VC++ runtimes, ..., almost anything. And
the problem may have come from almost anywhere - a messed up Windows Patch, a
Security patch, SP, a rougue install of a Virus Checker, firewall, etc....
again the list of possible suspects can go on for ever. But it is something
that is commonly used by these environments.

As it is "blowing-up" before you even get to do anything makes it very
difficult to track down.

My suggestion is to simply re-install VS or VB IDE if this is possible.
You might want to invoke a system debugger such as Dr. Watson or WinDbg in
hopes one of these might get a clue (the name of component, etc.)

hth
-ralph
Author
20 Mar 2006 3:28 AM
Jeff Johnson [MVP: VB]
"Ben628751" <Ben628***@discussions.microsoft.com> wrote in message
news:BD72B3C3-90FF-44A0-A8E0-489DED8C19B0@microsoft.com...

> The same problem occurs on Visual C# 2005 Express Edition.

Does this mean you're using Visual Basic 2005 Express? If so,

This is a VB "classic" newsgroup. Questions about VB.NET (including VB 2005,
which has dropped .NET from its name) are off-topic here.

Please ask .NET questions in newsgroups with "dotnet" in their names. The
*.vb.* groups are for VB6 and earlier. If you don't see the *.dotnet.*
groups on your news server, connect directly to the Microsoft server:
msnews.microsoft.com.