Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - LoaderLock was detected
  FAQ FAQ  Forum Search   Register Register  Login Login

LoaderLock was detected

 Post Reply Post Reply
Author
Message
softwaredev View Drop Down
Beginner
Beginner


Joined: 01 Sep 09
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote softwaredev Quote  Post ReplyReply Direct Link To This Post Topic: LoaderLock was detected
    Posted: 19 Aug 11 at 9:00PM

have following code am running inside of Visual Studio 2010, .NET 3.5, VB.NET ...

' Create Image using QuickPDF
Dim QP As QuickPDFAX0715.PDFLibrary
Dim Result As Integer
Dim lngFileHandle As Long
Dim pageRef As Long
Dim imageConversionResult As Integer
QP = New QuickPDFAX0715.PDFLibrary
Result = QP.UnlockKey("licensekehere")   EVAL license
lngFileHandle = QP.DAOpenFile(FILE_REPOSITORY & myRow.pFile_ID & "\" & myRow.pActive_version & myRow.pFile_Extension.ToUpper, "")
pageRef = QP.DAFindPage(lngFileHandle, 1)
imageConversionResult = QP.DARenderPageToFile(lngFileHandle, pageRef, 5, 75, strPNGImageFile)
QP.DACloseFile(lngFileHandle)
QP = Nothing

On the line   QP = New QuickPDFAX0715.PDFLibrary get following error.

LoaderLock was detected.
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.

Need help in finding out why the API is not working.




Edited by softwaredev - 19 Aug 11 at 9:04PM
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 21 Aug 11 at 4:54AM
Have you tried downloading the 7.26 release as there have have been more than a few changes to the ActiveX / DLL and .NET interface files.

The update can be downloaded from here.

Back to Top
softwaredev View Drop Down
Beginner
Beginner


Joined: 01 Sep 09
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote softwaredev Quote  Post ReplyReply Direct Link To This Post Posted: 21 Aug 11 at 3:47PM

Tried the 7.26 same results, get the same exact error.
Back to Top
softwaredev View Drop Down
Beginner
Beginner


Joined: 01 Sep 09
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote softwaredev Quote  Post ReplyReply Direct Link To This Post Posted: 21 Aug 11 at 3:52PM

Just realized this error occurs only if I attempt a debug (F5) from within Visual Studio 2010. It does not get this error when directly launching the exe as normal program.

Guess its a low priority in that case for me. Though if you have any idea of what is going on with the VS2010 and your ActiveX API that will help me in the development process

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 24 Aug 11 at 2:28AM
I use VS 2010 and F5 all the time without getting this error.  It could be a project setting or something similar.  If you are getting the same results in 7.15 and 7.26 then it is most likely on your side as no one else has reported this problem.

Doing a Google or StackOverflow search turned up different solutions.  It sounds like you might be using other DLL's in your project that could be causing problems.  eg DirectX.


Andrew
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store