473,480 Members | 3,796 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

access violation - crashing the application.no idea when and where

(5b4.f74): Access violation - code c0000005 (!!! second chance !!!)
eax=00800000 ebx=77e760cb ecx=00a3dc1c edx=00000004 esi=80000016
edi=000000c8
eip=792cfcbb esp=0e47f91c ebp=0e47f928 iopl=0 nv up ei pl nz na po
nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000
efl=00000206
mscorwks!gc_heap::c_promote_callback+0xfe:
792cfcbb 8b3c81 mov edi,[ecx+eax*4]
ds:0023:02a3dc1c=????????
================================================== ==========
the **call stack** from the mini dump crash is :

mscorwks!gc_heap::c_promote_callback+0xfe
mscorwks!GcEnumObject+0x20
mscorwks!EECodeManager::EnumGcRefs+0x503
mscorwks!GcStackCrawlCallBack+0xc5
mscorwks!Thread::StackWalkFramesEx+0x136
mscorwks!Thread::StackWalkFrames+0x8b
mscorwks!CNameSpace::GcScanRoots+0x7b
mscorwks!gc_heap::c_mark_phase+0x8e
mscorwks!gc_heap::gc1+0x8c
mscorwks!gc_heap::gc_thread_function+0xa6
mscorwks!gc_heap::gc_thread_stub+0x5
kernel32!BaseThreadStart+0x37
================================================== ==========

i try to catch the bug for 2 days , ive no idea ,where it happen ( im using
some vb.net dlls ,

and 2 manged\unmanged c++ dll's ) .
any ideas ,why this bug happen,and what to look for ?

Jul 21 '05 #1
2 2522
Hi Tony

This may be a bug in the CLR, or it may be related to heap corruption due
to your interop calls.

What version of .NET are you using? I recommend you move to v1.1 SP1, if
you're not using it already.

-Chris

--------------------
|
| (5b4.f74): Access violation - code c0000005 (!!! second chance !!!)
| eax=00800000 ebx=77e760cb ecx=00a3dc1c edx=00000004 esi=80000016
| edi=000000c8
| eip=792cfcbb esp=0e47f91c ebp=0e47f928 iopl=0 nv up ei pl nz na po
| nc
| cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000
| efl=00000206
| mscorwks!gc_heap::c_promote_callback+0xfe:
| 792cfcbb 8b3c81 mov edi,[ecx+eax*4]
| ds:0023:02a3dc1c=????????
|
|
| ================================================== ==========
| the **call stack** from the mini dump crash is :
|
| mscorwks!gc_heap::c_promote_callback+0xfe
| mscorwks!GcEnumObject+0x20
| mscorwks!EECodeManager::EnumGcRefs+0x503
| mscorwks!GcStackCrawlCallBack+0xc5
| mscorwks!Thread::StackWalkFramesEx+0x136
| mscorwks!Thread::StackWalkFrames+0x8b
| mscorwks!CNameSpace::GcScanRoots+0x7b
| mscorwks!gc_heap::c_mark_phase+0x8e
| mscorwks!gc_heap::gc1+0x8c
| mscorwks!gc_heap::gc_thread_function+0xa6
| mscorwks!gc_heap::gc_thread_stub+0x5
| kernel32!BaseThreadStart+0x37
| ================================================== ==========
|
| i try to catch the bug for 2 days , ive no idea ,where it happen ( im
using
| some vb.net dlls ,
|
| and 2 manged\unmanged c++ dll's ) .
|
|
| any ideas ,why this bug happen,and what to look for ?
|
|
|
|

Jul 21 '05 #2
i have v1.1 SP1 .

i look at my calls to the unmanaged dll
all the parameter that passed are :

1. int ( i been told that all int passed by value ,even if they are data
member of gc class )
2.__nogc pointers
3.string that converted to allocated in the native heap using
PtrToStringChars,malloc ,and cstombs
4.int array that pointed by __nogc int*
any ideas what to check ? test ? looking at ?
im working on this bug for 2-3 days, no idea what's wrong here.

""Chris Lyon [MSFT]"" <cl***@online.microsoft.com> wrote in message
news:Cy****************@TK2MSFTNGXA01.phx.gbl...
Hi Tony

This may be a bug in the CLR, or it may be related to heap corruption due
to your interop calls.

What version of .NET are you using? I recommend you move to v1.1 SP1, if
you're not using it already.

-Chris

--------------------
|
| (5b4.f74): Access violation - code c0000005 (!!! second chance !!!)
| eax=00800000 ebx=77e760cb ecx=00a3dc1c edx=00000004 esi=80000016
| edi=000000c8
| eip=792cfcbb esp=0e47f91c ebp=0e47f928 iopl=0 nv up ei pl nz na po | nc
| cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000
| efl=00000206
| mscorwks!gc_heap::c_promote_callback+0xfe:
| 792cfcbb 8b3c81 mov edi,[ecx+eax*4]
| ds:0023:02a3dc1c=????????
|
|
| ================================================== ==========
| the **call stack** from the mini dump crash is :
|
| mscorwks!gc_heap::c_promote_callback+0xfe
| mscorwks!GcEnumObject+0x20
| mscorwks!EECodeManager::EnumGcRefs+0x503
| mscorwks!GcStackCrawlCallBack+0xc5
| mscorwks!Thread::StackWalkFramesEx+0x136
| mscorwks!Thread::StackWalkFrames+0x8b
| mscorwks!CNameSpace::GcScanRoots+0x7b
| mscorwks!gc_heap::c_mark_phase+0x8e
| mscorwks!gc_heap::gc1+0x8c
| mscorwks!gc_heap::gc_thread_function+0xa6
| mscorwks!gc_heap::gc_thread_stub+0x5
| kernel32!BaseThreadStart+0x37
| ================================================== ==========
|
| i try to catch the bug for 2 days , ive no idea ,where it happen ( im
using
| some vb.net dlls ,
|
| and 2 manged\unmanged c++ dll's ) .
|
|
| any ideas ,why this bug happen,and what to look for ?
|
|
|
|

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2700
by: Steven Reddie | last post by:
In article <slrnbnj19j.av.juergen@monocerus.manannan.org>, Juergen Heinzl wrote: >In article <f93791bd.0309282133.650da850@posting.google.com>, Steven Reddie wrote: >> I understand that access...
14
5237
by: JK Peck | last post by:
I have a fairly large Access application that ran correctly in Access 2000. After upgrading to Access 2003 (and recompiling and updating references), it reliably crashes at a certain point. If I...
0
1794
by: Microsoft News | last post by:
I'm getting the following error when I shut down my C# .NET v1.1 application: 0xC0000005: Access violation reading location 0x73bc0000 This error didn't occur until I added a...
1
2240
by: tony | last post by:
hi. my NET application is using mixed c++ dll ( managed and unmanaged) in that dll , im calling api's of unamanged dll. my application crash with no exception or warning. its hard to...
2
292
by: tony | last post by:
(5b4.f74): Access violation - code c0000005 (!!! second chance !!!) eax=00800000 ebx=77e760cb ecx=00a3dc1c edx=00000004 esi=80000016 edi=000000c8 eip=792cfcbb esp=0e47f91c ebp=0e47f928 iopl=0 ...
7
2572
by: Me | last post by:
Am new to vb dotnet and although I like what I've seen sofar, I am experiencing pblms with system access violation "attempt to read write protected memory". This error happens when I open a...
39
4223
by: Martin | last post by:
I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP 5.2.5. I have not used or changed this site for several months - the last time I worked with it, all was well. When I tried it...
1
8012
by: tk121 | last post by:
Hey all - I have some unmanaged code that I'm calling into with C# .NET 2.0, and everything works flawlessly in the debugger, but as soon as I run the application as a standalone executable it...
0
1226
by: vwood | last post by:
I have a program, written with Borland 5.0c with CodeGuard running, and I get an access violation on exit about half the time. Sometimes it happens in various places in my destructor, sometimes it...
0
7040
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6905
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7041
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7080
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6736
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
2994
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
561
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.