View Full Version : Error 5 Calling Support DLL
NewsArchive
01-18-2017, 03:36 AM
I wonder what would cause this. All of the DLLs dependencies are also
present in the "Support Files".
This setup works fine on our test machines, but we have one customer
who can't run the setup. It's a US Govt locked down system, but this
is an Admin running the setup.
It has the RunAs Administrator manifest.
Any ideas? Thanks.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
01-18-2017, 03:37 AM
Jeff,
Is this a Clarion DLL or C or C++ or... ?
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://archive.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Creative Reporting: http://www.CreativeReporting.com
Product Release & Update Notices
http://twitter.com/DeveloperPLUS
Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"
NewsArchive
01-18-2017, 03:38 AM
Clarion 6.3. It's been used on hundreds of setups without issue.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
01-18-2017, 03:38 AM
Jeff,
> Clarion 6.3. It's been used on hundreds of setups without issue.
That probably rules out not compiling in LIB mode!<g>
I keep thinking that there was mention that any error beginning with
-9######## was an OS error. If that's correct then 5 would be...
//
// MessageId: ERROR_ACCESS_DENIED
//
// MessageText:
//
// Access is denied.
//
#define ERROR_ACCESS_DENIED 5L
Lee White
NewsArchive
01-18-2017, 03:39 AM
> I keep thinking that there was mention
But I've not had a lot of sleep recently so....<g>
Lee White
NewsArchive
01-18-2017, 03:39 AM
> -9########
Never mind, that was something completely unrelated - I NEED SLEEP!<g>
Lee White
NewsArchive
01-18-2017, 12:44 PM
Hi Lee -
That was the conclusion that I had reached as well. Thanks.
I just don't know why yet.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
01-18-2017, 12:44 PM
Hi Jeff,
>
> Clarion 6.3. It's been used on hundreds of setups without issue.
>
I have checked the SB runtime source codes. The following is the part
(original source code lines) from the runtime that fails in your case on
this specific machine:
---
hInst = LoadLibrary(Para1);
// New: 29-Oct-2013
if (hInst == NULL)
{
return ( -900000000 - GetLastError() );
}
// End New:
---
In other words, the LoadLibrary() Windows API fails and GetLastError()
returns ERROR_ACCESS_DENIED 5 (0x5)). There is a machine specific problem
with your DLL on this machine. Something "locks" the DLL.
Friedrich
NewsArchive
01-18-2017, 12:45 PM
Friedrich,
> return ( -900000000 - GetLastError() );
>
> returns ERROR_ACCESS_DENIED 5 (0x5)).
Well how about that, I -WAS- right! That just doesn't happen often!<g>
Lee White
NewsArchive
01-18-2017, 12:45 PM
Hi Friedrich -
Thanks. I wish I knew "what" could be locking that file, as it only
exists for this setup.
Anyone know if there is a windows security policy option that would
limit the loading of DLLs like this?
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
01-18-2017, 12:46 PM
> Thanks. I wish I knew "what" could be locking that file, as it only
> exists for this setup.
Blame Putin :-Z
Graham
NewsArchive
01-19-2017, 03:08 AM
Hi Jeff,
> Thanks. I wish I knew "what" could be locking that file, as it only
> exists for this setup.
>
> Anyone know if there is a windows security policy option that would
> limit the loading of DLLs like this?
Perhaps the "real-time" virus/spyware monitoring put a (temporary) lock onto
that file? Is the DLL code-signed? If not, try to code-sign it to see if
it makes a difference.
Friedrich
NewsArchive
01-19-2017, 03:09 AM
Good idea. No it is not.
Can support files be signed within the SB compile, or should that be
done ahead of time?
Thanks!
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
01-19-2017, 03:10 AM
> Good idea. No it is not.
>
> Can support files be signed within the SB compile, or should that be
> done ahead of time?
Yes, no problem. Just do this:
#code-sign application "C:\test\test.dll" ["test"] [Permanent] [Skip]
#include support file "C:\test\test.dll"
Friedrich
NewsArchive
01-19-2017, 03:10 AM
> > Is the DLL code-signed?
> No it is not.
Ah, Jeff, say it ain't so!<g>
Lee White
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.