473,385 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Access violation,application crash

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 find when the crash happen ,and where.

the only thing i have is the mini dump of the crash ,and it say :

================================================== ==========

Comment: '1st_chance_AccessViolation_exception_in_V4USTARTE R.

EXE_running_on_TPSTATION1'
Windows XP Version 2600 (Service Pack 1) UP Free x86 compatible
Product: WinNt, suite: SingleUserTS
Debug session time: Tue Apr 5 01:58:00.000 2005 (GMT+2)
System Uptime: not available
Process Uptime: 0 days 0:03:26.000
Symbol search path is: C:\Program Files\Debugging Tools for
Windows\MyLocalSymbols;

SRV*C:\Program Files\Debugging Tools for Windows\MyLocalSymbols*http://msdl.

microsoft.com/download/symbols;E:\Programming\V4USERVER\bin;C:\Program

Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\symbols
Executable search path is: E:\Programming\V4USERVER\bin
.................................................. ...........................
.................................................. ...........................
.......................
(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 ?


Nov 17 '05 #1
1 2234

tony wrote:
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 find when the crash happen ,and where.

the only thing i have is the mini dump of the crash ,and it say :

================================================== ==========

Comment: '1st_chance_AccessViolation_exception_in_V4USTARTE R.

EXE_running_on_TPSTATION1'
Windows XP Version 2600 (Service Pack 1) UP Free x86 compatible
Product: WinNt, suite: SingleUserTS
Debug session time: Tue Apr 5 01:58:00.000 2005 (GMT+2)
System Uptime: not available
Process Uptime: 0 days 0:03:26.000
Symbol search path is: C:\Program Files\Debugging Tools for
Windows\MyLocalSymbols;

SRV*C:\Program Files\Debugging Tools for Windows\MyLocalSymbols*http://msdl.
microsoft.com/download/symbols;E:\Programming\V4USERVER\bin;C:\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\symbols
Executable search path is: E:\Programming\V4USERVER\bin
.................................................. ........................... .................................................. ........................... ......................
(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 ?


It seems that you may encountered the known mixed DLL bug, but I'm not
sure, read here for more information:
http://msdn.microsoft.com/library/de...ingProblem.asp

This bug may also occurs because of memory corruption that a pointer in
your native code may be responsible to. But it looks more like the
mixed DLL problem.

Alon Fliess
CTO
The Sela Group.

Nov 17 '05 #2

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

Similar topics

1
by: Bue Krogh Vedel-Larsen | last post by:
I'm extending my C++ app by embedding Python 2.4.1 in it. The app is multithreaded and split into several DLL's. The main EXE calls Py_Initialize and Py_Finalize and each DLL gets a seperate...
3
by: Kyle Teague | last post by:
I have a list of pointers to structs as a private member of a class. If I call begin() in the same function as I added the data then no access violation occurs. However, if I try to call begin() in...
3
by: Greg B | last post by:
Created a simple Win32 application (using Visual Studio wizard)... Am using Visual Studio (Enterprise Edition) 6.0, as well as Service Pack 5. At the start of 'WinMain' function, added the...
3
by: Binary | last post by:
VC++ .NET 2003: Access violation with /O2 compiler switch; no AV with /O Hi I'm in the process of narrowing down a problem, and I have reduced the code involved to the following If someone could...
2
by: bhreddy | last post by:
Hi All, Can someone help me out how can I resolve the error "0xC0000005: Access violation reading location 0x513112f4"? Steps I followed... 1. I ran the application at DOS prompt 2. After...
7
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...
5
by: Sonnich | last post by:
Hi! I get this error: PHP has encountered an Access Violation at 04C3451C It occurs at the while line, as I get a and b, but not c. I run this a number of times, but the 3 first times it...
6
by: hadad.yaniv | last post by:
Hello, i am new to c++, i hav a vector of typed object: vector<Man*People; When i do a second pushback, even for the same object the program crash say: "An Access Violation (Segmentation...
6
by: nmehring | last post by:
I have an MFC app with 2000 users. I have one user that experiences a crash in our software anywhere from 1 to 5 times a week when opening a particular module. No other users have reported this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.