PDA

View Full Version : What is %_SB_ERRORCODE% of -900000126 ?



NewsArchive
03-22-2014, 08:27 AM
I'm attempting to load a support DLL.

My function is: (*CSTRING,*CSTRING),LONG,PASCAL

The code inside the function doesn't execute.

What could be the problem?

I checked to make sure the support dll exists in the tmpdir.

Thanks.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-22-2014, 08:27 AM
Jeff,

> The code inside the function doesn't execute.

Wild stab, is the DLL compiled in LIB mode?

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.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!"

NewsArchive
03-22-2014, 08:28 AM
Local, C6

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-22-2014, 08:28 AM
And, I might add, this is a previously-working DLL, but I added a new
function and now it ain't workin'. It was in "local" before, and it
was working fine.


Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-22-2014, 08:29 AM
Jeff,

> And, I might add, this is a previously-working DLL, but I added a new
> function and now it ain't workin'. It was in "local" before, and it
> was working fine.

So it is LIB mode.<g>

Another wild stab... Is the EXP mangled? It shouldn't be.

Do the original functions still work?

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.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!"

NewsArchive
03-22-2014, 08:29 AM
ok, you jogged my memory. Thanks Lee.

Yeah, the exp was right, but there was a dynamically linked DLL that I
needed to make available. There was a constructor that loaded the DLL
in a module-level class.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-22-2014, 08:30 AM
Jeff,

> ok, you jogged my memory. Thanks Lee.

Wild stabs to the rescue... get some band-aids, quick!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.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!"

NewsArchive
03-22-2014, 08:30 AM
Yepperoni :)

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-22-2014, 08:31 AM
But either way, hopefully Friedrich will help me to decode that error
message so my wild stabs (in addition to yours) aren't so wild. :)

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-22-2014, 08:31 AM
Jeff,

> But either way, hopefully Friedrich will help me to decode that error
> message so my wild stabs (in addition to yours) aren't so wild. :)

I was thinking BIG numbers like that were suffixed with standard Win32
errors, ie: 126 from WinError.h...

//
// MessageId: ERROR_MOD_NOT_FOUND
//
// MessageText:
//
// The specified module could not be found.
//
#define ERROR_MOD_NOT_FOUND 126L

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.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!"

NewsArchive
03-22-2014, 08:31 AM
OK. I wonder what -9 means.

Thanks.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-22-2014, 08:35 AM
Jeff,

> OK. I wonder what -9 means.

Negative nine.

Lee White

NewsArchive
03-22-2014, 08:36 AM
>> OK. I wonder what -9 means.
>
> Negative nine.

Touching the playing card to my forehead ... I saw that one coming!

:-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ProScan, ProImage, ProPath and other Clarion
developer tools!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
03-22-2014, 08:36 AM
Hi Jeff,

>
> OK. I wonder what -9 means.
>

the -9000xxxxx is just an internal indicator of where the problem occurred
in the SB runtime. xxxxx is the "real" GetLastError code.

return ( -900000000 - GetLastError() );

In your case, it's the GetLastError code from the failed LoadLibrary API
call (it returned NULL and GetLastError returned 126).

Exactly what Lee said:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

ERROR_MOD_NOT_FOUND -> 126 (0x7E) -> The specified module could not be
found.

Friedrich

NewsArchive
03-22-2014, 08:37 AM
Sweet. Thanks.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-22-2014, 11:59 AM
Jeff,

> >Exactly what Lee said:

See? TOLD YA. HA!<g>

Lee White

NewsArchive
03-24-2014, 03:38 AM
Trust, but verify<g>

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-24-2014, 03:39 AM
Jeff,

> Trust, but verify<g>

INDEED!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.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!"

NewsArchive
04-27-2016, 02:10 AM
This one bit me again until I SetPath to the %TMPDIR% folder.

Seems to me that when LoadLibrary is done on support files, it should
use that %TMPDIR% to search for the dependencies by default.

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
04-27-2016, 02:11 AM
Hi Jeff,

> This one bit me again until I SetPath to the %TMPDIR% folder.
>
> Seems to me that when LoadLibrary is done on support files, it should
> use that %TMPDIR% to search for the dependencies by default.

Do you get this after you called your own DLL through "Call DLL
Function..."?

If your own DLL loads dependency files that are also located in %TMPDIR%
then enabling the "Use DLL path name as current working directory to load
DLL" checkbox will set the path to the %TMPDIR% folder. And after the DLL
returned, it will be set back to the original (current directory) path.

Friedrich

NewsArchive
04-27-2016, 08:57 AM
Maybe I should read the SB dialogs more often. Thanks Friedrich.

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
04-28-2016, 01:32 AM
>
> Maybe I should read the SB dialogs more often. Thanks Friedrich.
>

:) You are very welcome. I am here to help :)

Friedrich