-
July 31st, 2012, 02:38 AM
#1
C++ dll crash windows 7
Hi there all,
We have a web application that generated with visual studio - C sharp, just loaded into IIS. In some part of that application we import a C++ dll by the opening of a modal page. It works correctly in windows xp but in windows 7 it shows the wrong page (default.aspx). We are sure that it is because of dllimport because when we comment out the method that executes the dllimport, it shows the correct page. Here I am giving the stack trace deployed from "debug diagnostic tool": (Cause there is no error when we debug the application with Visual Studio in windows 7 on localhost)
.NET Call Stack
Function
Microsoft.Win32.Win32Native.CoTaskMemFree(IntPtr)
System.StubHelpers.CSTRMarshaler.ClearNative(IntPtr)
DomainBoundILStubClass.IL_STUB_PInvoke(Int32, Int32, Double, Double, System.String, System.String, System.String, System.String, System.String, Boolean, IntPtr)
Ads40Web.RaporlarB.WebReport(Int32, Int32, Double, Double, System.String, System.String, System.String, System.String, System.String, Boolean, IntPtr)
Ads40Web.RaporlarB.Report(Int32, Int32, Double, Double, Boolean)
Ads40Web.RaporlarB.Page_Load(System.Object, System.EventArgs)
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr, System.Object, System.Object, System.EventArgs)
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(System.Object, System.EventArgs)
System.Web.UI.Control.OnLoad(System.EventArgs)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)
System.Web.UI.Page.ProcessRequest(Boolean, Boolean)
System.Web.UI.Page.ProcessRequest()
System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext)
System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)
ASP.raporlarb_aspx.ProcessRequest(System.Web.HttpContext)
System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep, Boolean ByRef)
System.Web.HttpApplication+ApplicationStepManager.ResumeSteps(System.Exception)
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext, System.AsyncCallback, System.Object)
System.Web.HttpRuntime.ProcessRequestInternal(System.Web.HttpWorkerRequest)
System.Web.HttpRuntime.ProcessRequestNoDemand(System.Web.HttpWorkerRequest)
System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr, Int32)
DomainNeutralILStubClass.IL_STUB_COMtoCLR(Int32, Int32, IntPtr)
Full Call Stack
Function
Arg 1
Arg 2
Arg 3
Arg 4
Source
ntdll!RtlReportCriticalFailure+57
c0000374
771bcdd8
0f7fe59c
771a481b
ntdll!RtlpReportHeapFailure+21
00000002
78421d2f
00000000
00360000
ntdll!RtlpLogHeapFailure+a1
00000009
00360000
10291b3c
00000000
ntdll!RtlFreeHeap+64
00360000
00000000
10291b3c
0f7fe5f0
ole32!CRetailMalloc_Free+1c
75a466bc
10291b3c
0f7fe634
59d6f72d
d:\w7rtm\com\ole32\com\class\memapi.cxx @ 687
ole32!CoTaskMemFree+13
10291b3c
68cd079b
68f65c50
0f7fe6a8
d:\w7rtm\com\ole32\com\class\memapi.cxx @ 475
System.StubHelpers.CSTRMarshaler.ClearNative(IntPtr)
10261d97
73696441
206e6f79
305f312d
DomainBoundILStubClass.IL_STUB_PInvoke(Int32, Int32, Double, Double, System.String, System.String, System.String, System.String, System.String, Boolean, IntPtr)
01da1e68
6902731a
67947e47
0eb73700
clr!SetObjectReferenceUnchecked+4e
00000001
00000000
00000000
00000000
Ads40Web.RaporlarB.Page_Load(System.Object, System.EventArgs)
01d64444
0f7feba0
01cbf31d
01d64444
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr, System.Object, System.Object, System.EventArgs)
01d64444
06013628
06013628
0f7febb8
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(System.Object, System.EventArgs)
01d64444
06013628
06013628
0f7feef8
System.Web.UI.Control.OnLoad(System.EventArgs)
0170e0b0
06013628
00b63418
0f7feef8
System.Web.UI.Control.LoadRecursive()
00000000
020315d4
06013628
00000000
System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)
00000001
06013628
00000000
00000000
System.Web.UI.Page.ProcessRequest(Boolean, Boolean)
00000001
05d141b0
05d141b0
01da1e68
System.Web.UI.Page.ProcessRequest()
06013628
0f7fef9c
01cb4360
00000000
System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext)
00000000
01d919f0
020315d4
0f7fefac
System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)
020315d4
06013628
0f7fefd8
01c7ad8f
ASP.raporlarb_aspx.ProcessRequest(System.Web.HttpContext)
020315d4
00000000
00000000
00000000
System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
00000000
00000000
00000000
00000000
System.Web.HttpApplication.ExecuteStep(IExecutionStep, Boolean ByRef)
0f7ff050
01d908d0
02031a30
02031a50
System.Web.HttpApplication+ApplicationStepManager.ResumeSteps(System.Exception)
0f7ff508
00ce1110
0f7ff508
01d908d0
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext, System.AsyncCallback, System.Object)
020315d4
05d1dcf0
020315d4
0203100c
System.Web.HttpRuntime.ProcessRequestInternal(System.Web.HttpWorkerRequest)
0f7ff528
00000002
00d51d9c
0f7ff240
clr!COMToCLRDispatchHelper+28
015faf30
015fafd0
01d48a90
0092b6c8
clr!BaseWrapper<Stub *,FunctionBase<Stub *,&DoNothing<Stub *>,&StubRelease<Stub>,2>,0,&CompareDefault<Stub *>,2>::~BaseWrapper<Stub *,FunctionBase<Stub *,&DoNothing<Stub *>,&StubRelease<Stub>,2>,0,&CompareDefault<Stub *>,2>+fa
015fafd0
01d48a90
00000001
00000000
clr!COMToCLRWorkerBody+b4
0eb37b38
0f7ff4f8
0090ffa0
67946493
clr!COMToCLRWorkerDebuggerWrapper+34
0eb37b38
0f7ff4f8
0090ffa0
679462e3
clr!COMToCLRWorker+614
0eb37b38
0f7ff4f8
68cd079b
0f7ff844
0x0078a1a7
00000001
0092b6c8
00000000
0f7ff844
webengine4!HttpCompletion::ProcessRequestInManagedCode+1cd
0092b6c8
6f7eaae2
0f7ff86c
6f7eaafe
webengine4!HttpCompletion::ProcessCompletion+4a
0092b6c8
00000000
00000000
00000000
webengine4!CorThreadPoolWorkitemCallback+1c
0092b6c8
67946e93
0000ffff
00030003
clr!UnManagedPerAppDomainTPCount:ispatchWorkItem+195
0f7ff91f
0f7ff91e
67946f03
00000000
clr!ThreadpoolMgr::NewWorkerThreadStart+20b
00000000
67946fbb
00000000
690ec531
clr!ThreadpoolMgr::WorkerThreadStart+3d1
00000000
77138968
01920000
00000002
clr!Thread::intermediateThreadProc+4b
0eadca38
0f7ffd7c
7714377b
0eadca38
kernel32!BaseThreadInitThunk+e
0eadca38
784205cf
00000000
00000000
ntdll!__RtlUserThreadStart+70
69028e00
0eadca38
00000000
00000000
ntdll!_RtlUserThreadStart+1b
69028e00
0eadca38
00000000
00000000
Exception Information
In w3wp__ads40web__PID__1760__Date__07_04_2012__Time_05_55_43PM__364__Second_Chance_Exception_C0000374.dmp the assembly instruction at ntdll!RtlReportCriticalFailure+57 in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an unknown exception (0xc0000374) on thread 30
Maybe it is just because of a wrong IIS setting... Please help if you have any suggestion regarding to that...
-
July 31st, 2012, 04:06 AM
#2
Re: C++ dll crash windows 7
Originally Posted by symeramon
Hi there all,
We have a web application that generated with visual studio - C sharp, just loaded into IIS. In some part of that application we import a C++ dll by the opening of a modal page. It works correctly in windows xp but in windows 7 it shows the wrong page (default.aspx). We are sure that it is because of dllimport because when we comment out the method that executes the dllimport, it shows the correct page. Here I am giving the stack trace deployed from "debug diagnostic tool": (Cause there is no error when we debug the application with Visual Studio in windows 7 on localhost)
Quite simply, you need to debug the C++ code.
Regards,
Paul McKenzie
-
July 31st, 2012, 07:03 AM
#3
Re: C++ dll crash windows 7
0xc0000374 is STATUS_HEAP_CORRUPTION hopefully that gives some clue in what parts of your code you should focus on.
-
August 1st, 2012, 05:35 AM
#4
Re: C++ dll crash windows 7
Originally Posted by S_M_A
0xc0000374 is STATUS_HEAP_CORRUPTION hopefully that gives some clue in what parts of your code you should focus on.
Thank you SMA for your response will focus on it...
-
July 31st, 2012, 06:55 AM
#5
Re: C++ dll crash windows 7
Originally Posted by Paul McKenzie
Quite simply, you need to debug the C++ code.
Regards,
Paul McKenzie
Thank you Paul, will look for it...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|