473,396 Members | 2,140 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,396 software developers and data experts.

Application Crash with mixed Mode DLL

I have an unmanaged MFC application linked to a mixed mode MFC extension dll
(.NET 2.0/VS 2005) . I followed all the instructions correctly and ensured
that no managed code gets called from the DllMain. When I run the application
it just crashes.

Unhandled exception at 0x013f288e in ImpEDC.exe: 0xC0000005: Access violation.

Hereis the stack trace

013f288e()
ntdll.dll!_LdrpCallInitRoutine@16() + 0x14 bytes
ntdll.dll!_LdrpRunInitializeRoutines@4() + 0x1c7 bytes
ntdll.dll!_LdrpGetProcedureAddress@20() + 0x1c3 bytes
ntdll.dll!_LdrGetProcedureAddress@16() + 0x18 bytes
ntdll.dll!_LdrpCorValidateImage@8() + 0x3ec bytes
ntdll.dll!_LdrpCheckCorImage@16() + 0x25 bytes
ntdll.dll!_LdrpMapDll@24() + 0x17036 bytes
ntdll.dll!_LdrpLoadImportModule@20() + 0x783 bytes
ntdll.dll!_LdrpHandleOneOldFormatImportDescriptor@ 16() + 0x4c bytes
ntdll.dll!_LdrpHandleOldFormatImportDescriptors@16 () + 0x2e bytes
ntdll.dll!_LdrpWalkImportDescriptor@8() + 0x11d bytes
ntdll.dll!_LdrpInitializeProcess@20() + 0x8b4 bytes
ntdll.dll!__LdrpInitialize@12() + 0x88d3 bytes
ntdll.dll!_KiUserApcDispatcher@20() + 0x7 bytes

When I delay load the same dll everything works properly? It is only this
app which has Any ideas what may be wrong or on how to trouble shoot? The
same dll works on other small test apps. When I unlink the dll from the main
app everything works fine.

Feb 14 '06 #1
1 1791
When I delay load the same dll everything works properly? It is only this
app which has Any ideas what may be wrong or on how to trouble shoot? The
same dll works on other small test apps. When I unlink the dll from the main
app everything works fine.


Is the application linked with any other DLLs (non-system)? If it is, I would suspect
those DLLs (the code they run in DllMain and constructors of global objects).

If it does not help, try to run the application under WinDbg and post the output
of the following commands (at the moment of the exception):

r
kb
!lmi yourdll.dll
!address 0x013f288e

http://www.microsoft.com/whdc/ddk/de...g/default.mspx

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]



Feb 15 '06 #2

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

Similar topics

1
by: Mike Kamzyuk | last post by:
Hello all. Basically, I need to call a mixed-mode dll's function (which uses managed code) from a native or mixed-mode dll function (which does not use managed code). I'm wondering if this could...
6
by: GL | last post by:
I am getting a crash while exiting from my application. Pl find the Stack Trace of the crash: System.Windows.Forms.Application.ThreadWindows.ThreadWindows(System.Windows.Forms.Control parent =...
0
by: Edward Diener | last post by:
I have some questions about the instructions for creating a mixed mode DLL in the MSDN topic "Converting Managed Extensions for C++ Projects from Pure Intermediate Language to Mixed Mode" in the...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
7
by: Staale L. Hansen | last post by:
We have an application which uses some mixed-mode code to expose a .NET 1.1 managed API. Only the necessary files are compiled with /clr. We want to be able to load the application without .NET...
1
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...
8
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
7
by: Ashutosh Bhawasinka | last post by:
Hi, I have a C# .Net application which needs to use some feature which can be only developed in Visual C++ (its extended MAPI). The C# exe will be supplied to users without a setup. What kind...
7
by: Warren Tang | last post by:
Hi everyone I have a web application that is built for ASP.NET 2.0. Now I want to update it to 3.5, so that I can use the AJAX controls. What are the risks if I update it? What are the things...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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...

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.