Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 04-06-2009
Member
 
Join Date: Mar 2009
Posts: 49
Mobile .net Native Exception Error 0xC0000005

My colleague developed a small application in VB.Net. It was working fine as he told me but now when trying to access in me, it gives me a Native Exception. I get an error that says "A native exception has occurred in ....". When viewing the details it give the error code 0xc0000005. Can someone solve my problem with this..????
Reply With Quote
  #2  
Old 04-06-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Mobile .net Native Exception Error 0xC0000005

This exception is very generic AV, and it has probably nothing to see with the escape of memory who is different questions.

The AV system happens if the application is trying to access something in memory that does not belong to him. In the run caused by use P / Invoke incorrect or improper use unsafe code. If native DLL is used that they can come from native DLL that because of the bad one be last parameters cause of errors in it. In many cases manifest in AV completely insignificant part of the question, because the memory or battery has been damaged to a sure point from other part of the code. Of usual it is much difficult one to monitor.

I would recommend isolation strategy: identify potentially problematic code areas, exclude them and see if problem is gone. Return that code gradually till it returns.
Reply With Quote
  #3  
Old 04-06-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Mobile .net Native Exception Error 0xC0000005

My experience me door to believe hardly that mixed (native/managed) the debugging it does not work with VS2k5 on Windows Mobile. What we make of usual is to set up like Start of the native plan/managed plans based on that we want debug. Regarding the way in order to hold trace towards the low, it can be forgotten to obtain an accurate one stack trace - enough to use System.Diagnostics.Debug.WriteLine in order to trace that they ask for native code (from the managed code, for usual through P/Invoke or COM) has caused the problem.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Mobile .net Native Exception Error 0xC0000005"
Thread Thread Starter Forum Replies Last Post
Outlook 2010 64bit crashes on Win7 Ultimate after launch - exception code : 0xc0000005 HeerePanna Windows Software 5 16-10-2010 02:50 AM
Rundll32.exe error 0xC0000005 Solitario Windows Software 3 10-12-2009 04:19 PM
GTA IV gives error 0xc0000005 Salome Video Games 3 04-04-2009 06:56 PM
Error Message 0xc0000005 trinirdm Windows XP Support 7 15-02-2009 10:24 PM
Error message (0xc0000005) Babik Vista Help 2 05-01-2009 12:11 AM


All times are GMT +5.5. The time now is 01:37 AM.