none
VC++ RRS feed

  • Question

  • What is 0xC0000005 error in VC++?Why does it occur? What should be done to avoid it?
    Saturday, March 17, 2007 7:45 AM

Answers

  • Its a memory access error... There might be some problem with your updation in code or your Windows Service Pack problem... just check your code and build it again.. it might be alright....
    Saturday, March 17, 2007 7:50 AM

All replies

  • Its a memory access error... There might be some problem with your updation in code or your Windows Service Pack problem... just check your code and build it again.. it might be alright....
    Saturday, March 17, 2007 7:50 AM
  • its a memory reference error and is caused when you try to access memory out of bounds. to avoid it, check the pointers that you have used. if you try to use pointer variables without initializing them, then you've to face this error.
    Saturday, March 17, 2007 6:04 PM
  • Also it is dangerous to use pointers without initializing.. because pointers can point to any part of the memory are... even those part of the are where the OS is loaded... now imagine this

    "Your pointer is pointing to a memory location where lets say where you media player is loaded ie you are also running the media player behind.. Now you change the data stored at this location.. as a result your media player will crash down..."

    On a larger scale if you are pointing to the location where OS is loaded your OS will crash down....

    This is the reason how most of the virus work.. they point to the core parts where OS is loaded and than boom.. you OS is crashed... Now it can also be that there is a virus in you pc.. This happened to me.. so due to it the virus is residing at a location hidden from the OS.. now you program when runs try to adress this location but the virus dosen allow to enter this area. as a result you face this problemmm Now this can be the reason even if you are not using pointers...

    Saturday, March 17, 2007 6:11 PM
  • you are partially right varun.

    to access portions of memory where os cores are loaded, you need to dereference pointers, and should be able to gain access to protected memory areas. for  that, you need to do system level programming is assembly and C.

    windows 2003 totally denies access to it. it's easy to break 2003 servers. the most easiest target is windows 98. it's full of bugs, and then xp.

    Saturday, March 17, 2007 6:21 PM