Get detail of native exception

G

Guest

Hi All,

I am trying to submit a web request in compact framework and I am running
into a native exception 0x0000005 exception (Access Violation). This native
error is somehow intermittent.

The error always happens when I make a call to
"HttpWebRequest.GetResponse()" method.

Is there a way to debug or get further information such as stack trace for
this kind of native exception (I tried to click on the debug button on the
window that displays the native exception but nothing happens).

Thank You,

A
 
I

Ilya Tumanov [MS]

G

Guest

Ilya, Thank you for the links and the hints.

I used the Cordbg.exe to debug the CF application
(http://blogs.msdn.com/davidklinems/archive/2004/06/22/163029.aspx)
And this is what I got for the Native Exception using cordbg.exe

========Start of cordbg.exe ouput (just before the exception) ============
First chance exception generated: (0x00643524)
<System.IO.FileNotFoundException>

First chance exception generated: (0x00643f8c)
<System.IO.FileNotFoundException>

First chance exception generated: (0x00661bc0) <System.UriFormatException>
[thread 0x65e694] Thread created.
First chance exception generated: (0x006638a8) <System.ArgumentException>
[thread 0x65e694] Thread exited.
[thread 0x6779c4] Thread created.
[thread 0x6779c4] Thread exited.
[thread 0x91374] First chance exception generated: (0x0030aa18)
<System.Net.WebException>
(cordbg) n
[thread 0x91374] Thread exited.
[thread 0x2b4f94] First chance exception generated: (0x002fb8e0)
<System.ObjectD
isposedException>
First chance exception generated: (0x002fb8f0)
<System.ObjectDisposedException>
[thread 0x2b4f94] Thread exited.
The debugger has encountered a fatal error.
Error: hr=0x80131320, Non-Winbase Error
Process exited.

============End of cordbg.exe ouput ============

But I still can't figure out what the actual cause is.
URIFormatException -> The uri is valid and this shouldn't be a problem
but I am still unable to figure out why how/why the native exception occurs
and how it is related to the above exception(s).

Any suggestion is very much appreciated.

Thanks,

Abel
 
I

Ilya Tumanov [MS]

That is managed debugger output and it's not very helpful in case of native
exception.



Thought you do have ObjectDisposedException which is bad, please try
eliminating this first.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

AnduAlem said:
Ilya, Thank you for the links and the hints.

I used the Cordbg.exe to debug the CF application
(http://blogs.msdn.com/davidklinems/archive/2004/06/22/163029.aspx)
And this is what I got for the Native Exception using cordbg.exe

========Start of cordbg.exe ouput (just before the exception) ============
First chance exception generated: (0x00643524)
<System.IO.FileNotFoundException>

First chance exception generated: (0x00643f8c)
<System.IO.FileNotFoundException>

First chance exception generated: (0x00661bc0) <System.UriFormatException>
[thread 0x65e694] Thread created.
First chance exception generated: (0x006638a8) <System.ArgumentException>
[thread 0x65e694] Thread exited.
[thread 0x6779c4] Thread created.
[thread 0x6779c4] Thread exited.
[thread 0x91374] First chance exception generated: (0x0030aa18)
<System.Net.WebException>
(cordbg) n
[thread 0x91374] Thread exited.
[thread 0x2b4f94] First chance exception generated: (0x002fb8e0)
<System.ObjectD
isposedException>
First chance exception generated: (0x002fb8f0)
<System.ObjectDisposedException>
[thread 0x2b4f94] Thread exited.
The debugger has encountered a fatal error.
Error: hr=0x80131320, Non-Winbase Error
Process exited.

============End of cordbg.exe ouput ============

But I still can't figure out what the actual cause is.
URIFormatException -> The uri is valid and this shouldn't be a problem
but I am still unable to figure out why how/why the native exception
occurs
and how it is related to the above exception(s).

Any suggestion is very much appreciated.

Thanks,

Abel

Ilya Tumanov said:
It won't be easy. Please see this:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=440571&SiteID=1

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
G

Guest

The ObjectDisposedException is actually part of the whole
"HttpWebRequest.GetResponse()" method. All the exceptions that I posted
earlier are thrown when making a call to "HttpWebRequest.GetResponse()"
which is part of the framework and which I can't change.

Ilya Tumanov said:
That is managed debugger output and it's not very helpful in case of native
exception.



Thought you do have ObjectDisposedException which is bad, please try
eliminating this first.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

AnduAlem said:
Ilya, Thank you for the links and the hints.

I used the Cordbg.exe to debug the CF application
(http://blogs.msdn.com/davidklinems/archive/2004/06/22/163029.aspx)
And this is what I got for the Native Exception using cordbg.exe

========Start of cordbg.exe ouput (just before the exception) ============
First chance exception generated: (0x00643524)
<System.IO.FileNotFoundException>

First chance exception generated: (0x00643f8c)
<System.IO.FileNotFoundException>

First chance exception generated: (0x00661bc0) <System.UriFormatException>
[thread 0x65e694] Thread created.
First chance exception generated: (0x006638a8) <System.ArgumentException>
[thread 0x65e694] Thread exited.
[thread 0x6779c4] Thread created.
[thread 0x6779c4] Thread exited.
[thread 0x91374] First chance exception generated: (0x0030aa18)
<System.Net.WebException>
(cordbg) n
[thread 0x91374] Thread exited.
[thread 0x2b4f94] First chance exception generated: (0x002fb8e0)
<System.ObjectD
isposedException>
First chance exception generated: (0x002fb8f0)
<System.ObjectDisposedException>
[thread 0x2b4f94] Thread exited.
The debugger has encountered a fatal error.
Error: hr=0x80131320, Non-Winbase Error
Process exited.

============End of cordbg.exe ouput ============

But I still can't figure out what the actual cause is.
URIFormatException -> The uri is valid and this shouldn't be a problem
but I am still unable to figure out why how/why the native exception
occurs
and how it is related to the above exception(s).

Any suggestion is very much appreciated.

Thanks,

Abel

Ilya Tumanov said:
It won't be easy. Please see this:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=440571&SiteID=1

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

Hi All,

I am trying to submit a web request in compact framework and I am
running
into a native exception 0x0000005 exception (Access Violation). This
native
error is somehow intermittent.

The error always happens when I make a call to
"HttpWebRequest.GetResponse()" method.

Is there a way to debug or get further information such as stack trace
for
this kind of native exception (I tried to click on the debug button on
the
window that displays the native exception but nothing happens).

Thank You,

A
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top