Within VS 2005, using the following code
Code
pdfOutput.SetLicense("LicenseName", "LicenseCode", 0)pdfOutput.FileName = "c:\test.pdf"pdfOutput.BeginDoc()
I'm getting a Loader Lock issue when runing in Debug Mode, (Running the compiled Exe's don't have this problem)
Code
LoaderLock was detectedMessage: Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.
The Call Stack is as follows
Code
wPDF3.dll!wPDF.wPDFControlWrap.InitializeEngine() + 0x2c bytes wPDF3.dll!wPDF.PDFControl.NeedEngine() + 0x6e bytes wPDF3.dll!wPDF.PDFControl.BeginDoc(string FileName = "c:\\test.pdf", System.IO.Stream OutStream = null) + 0x36 bytes wPDF3.dll!wPDF.PDFControl.BeginDoc() + 0x35 bytes > compliance.dll!Compliance.Scanning.SimpleButton3_Click(Object sender = {DevExpress.XtraEditors.SimpleButton}, System.EventArgs e = {System.EventArgs}) Line 133 + 0x15 bytes Basic System.Windows.Forms.dll!System.Windows.Forms.Control.OnClick(System.EventArgs e) + 0x57 bytes DevExpress.XtraEditors.v7.1.dll!DevExpress.XtraEditors.BaseButton.OnClick(System.EventArgs e) + 0x45 bytes DevExpress.XtraEditors.v7.1.dll!DevExpress.XtraEditors.BaseButton.OnMouseUp(System.Windows.Forms.MouseEventArgs e = {X = 61 Y = 15 Button = Left}) + 0x89 bytes System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseUp(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks) + 0xf2 bytes System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x544 bytes DevExpress.Utils.v7.1.dll!DevExpress.Utils.Controls.ControlBase.WndProc(ref System.Windows.Forms.Message m) + 0x46 bytes System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) + 0xd bytes System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0xd6 bytes System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 514, System.IntPtr wparam, System.IntPtr lparam) + 0x75 bytes [Native to Managed Transition] [Managed to Native Transition] System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(int dwComponentID, int reason = -1, int pvLoopData = 0) + 0x2ea bytes System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason = -1, System.Windows.Forms.ApplicationContext context = {Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.WinFormsAppContext}) + 0x17d bytes System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) + 0x53 bytes System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context) + 0x15 bytes Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() + 0xc0 bytes Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() + 0xe4 bytes Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(string[] commandLine) + 0x62 bytes [Native to Managed Transition] [Managed to Native Transition] mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x32 bytes Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x2b bytes mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x3b bytes mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x81 bytes mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x40 bytes
The same applies if i have a WPViewer on the form (below is that call stack)
Code
[Managed to Native Transition]
PDFViewLib2.dll!WPViewPDF.PDFViewer.CreateParams.get() + 0x49 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateHandle() + 0x89 bytes
PDFViewLib2.dll!WPViewPDF.PDFViewer.CreateHandle() + 0x19 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.Handle.get() + 0x77 bytes
PDFViewLib2.dll!WPViewPDF.PDFViewer.Command(int commandnr = 101, string strparam = null) + 0x1c bytes
PDFViewLib2.dll!WPViewPDF.PDFViewer.LoadFromFile(string filename = null) + 0x25 bytes
PDFViewLib2.dll!WPViewPDF.PDFViewer.FileName.set(string value = null) + 0x1d bytes
compliance.dll!Compliance.Scanning.InitializeComponent() Line 575 + 0x1f bytes Basic
> compliance.dll!Compliance.Scanning.New() Line 15 + 0x15 bytes Basic
compliance.dll!Compliance.maincontainer.New() Line 47 + 0x13 bytes Basic
compliance.dll!Compliance.ComplianceInterface.ExecuteButtonClick(Integer functionNumber = 0) Line 120 + 0x13 bytes Basic
PluginFramework.exe!PluginFramework.frmMainHousing.ItemClick(Object sender = {DevExpress.XtraBars.Ribbon.RibbonBarManager}, DevExpress.XtraBars.ItemClickEventArgs e = {DevExpress.XtraBars.ItemClickEventArgs}) Line 66 + 0xc bytes Basic
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.BarItem.OnClick(DevExpress.XtraBars.BarItemLink link = {DevExpress.XtraBars.BarButtonItemLink}) + 0x79 bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.BarBaseButtonItem.OnClick(DevExpress.XtraBars.BarItemLink link) + 0x29 bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.BarItemLink.OnLinkClick() + 0x1a4 bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.BarItemLink.OnLinkAction(DevExpress.XtraBars.BarLinkAction action, object actionArgs) + 0x74 bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(DevExpress.XtraBars.BarLinkAction action, object actionArgs) + 0x2ef bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.BarItemLink.OnLinkActionCore(DevExpress.XtraBars.BarLinkAction action, object actionArgs) + 0x4f bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(DevExpress.XtraBars.BarItemLink link) + 0x3b bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(DevExpress.XtraBars.BarItemLink link) + 0x7b bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DevExpress.Utils.DXMouseEventArgs e = {X = 30 Y = 97 Button = Left}, DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo hitInfo = {DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo}) + 0x2e bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPress(DevExpress.Utils.DXMouseEventArgs e, DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo hitInfo) + 0x25 bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DevExpress.Utils.DXMouseEventArgs e) + 0x99 bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DevExpress.Utils.DXMouseEventArgs e = {X = 30 Y = 97 Button = Left}) + 0x1e bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.Ribbon.RibbonControl.OnMouseUp(System.Windows.Forms.MouseEventArgs e) + 0x6f bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseUp(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks) + 0xf2 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x544 bytes
DevExpress.Utils.v7.1.dll!DevExpress.Utils.Controls.ControlBase.WndProc(ref System.Windows.Forms.Message m) + 0x46 bytes
DevExpress.XtraBars.v7.1.dll!DevExpress.XtraBars.Ribbon.RibbonControl.WndProc(ref System.Windows.Forms.Message m) + 0x2e bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) + 0xd bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0xd6 bytes
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 514, System.IntPtr wparam, System.IntPtr lparam) + 0x75 bytes
[Native to Managed Transition]
[Managed to Native Transition]
DevExpress.Utils.v7.1.dll!DevExpress.Utils.Win.Hook.ControlWndHook.WindowProc(System.IntPtr hWnd, int message, System.IntPtr wParam, System.IntPtr lParam) + 0x8a bytes
[Native to Managed Transition]
[Managed to Native Transition]
System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(int dwComponentID, int reason = -1, int pvLoopData = 0) + 0x2ea bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason = -1, System.Windows.Forms.ApplicationContext context = {Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.WinFormsAppContext}) + 0x17d bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) + 0x53 bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context) + 0x15 bytes
Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() + 0xc0 bytes
Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() + 0xe4 bytes
Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(string[] commandLine) + 0x62 bytes
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x32 bytes
Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x2b bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x3b bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x81 bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x40 bytes
Alles anzeigen