Log in Register FAQ Memberlist Search ContactReview Forum Index
A GoldMine Discussion and Support Community

ContactReview Forum Index » GoldMine Coders » -4 error on load of DLL
Post new topic  Reply to topic View previous topic :: View next topic 
-4 error on load of DLL
PostPosted: Mon Jul 17, 2017 9:16 am Points: 0 Reply with quote
Paul Laufer
GoldBox Guru
Joined: 27 Oct 2008
Posts: 122




I have a programmer who is making a call to GoldMine and loading the gm7s32.dll file, and the connection attempt gets no return for perhaps 5 minutes, after which it gets a return of -4. This doesn't always happen, and on some machines it apparently never happens. I don't see anything that would explain why this is so. Here's the call he's making.

Code:
Private Declare Function GMW7_LoadAPI Lib "gm7s32.dll" Alias _
    "GMW_LoadAPI" ( _
    ByVal sSysDir As String, _
    ByVal sGoldDir As String, _
    ByVal sCommonDir As String, _
    ByVal sUser As String, _
    ByVal sPassword As String) As Long
   rc = GMW7_LoadAPI(SysPath, GMPath & ":", CommonPath & ":", GMUser, GMPassword)


I can see the EXE sitting in task manager waiting for the return. It takes 5 minutes and then it returns -4.

Anyone have any ideas where I should point him?

_________________
Paul Laufer
Telesage Solutions
www.tsage.com
View user's profile Send private message Visit poster's website

PostPosted: Mon Jul 17, 2017 9:49 am Points: 0 Reply with quote
DougCastell
GoldMine Guru
Joined: 15 Jun 2006
Posts: 1631
Location: Los Angeles, CA




well, a -4 return means bad password. Is he using the currently-logged-in GoldMine user at each workstation and the same password for all?

It's weird that it takes 5-minutes though...

-Doug





Here is a list of all of the LoadBDE/LoadAPI return codes:
Code:

1  --  success
-1 --  BDE/API failed to load - this means a problem with BDE 6.7 - or your SQL engine in 7.0
-2 --  Cannot find license file -  6.7 or lower - can't find license.dbf, 7.0 can't find license.bin - the files should be in the GoldMine install directory.
-3 --  Cannot load license file - this could happen because of user rights on the machine, also caused on 6.7 or lower when certain data objects are instanced before BDE. In 7.0 - it's most probably rights.
-4 --  Failed to validate password
-5 --  Invalid GoldDir - couldn't resolve the Alias for the GoldDir parameter.
-6 --  Invalid CommonDir- couldn't resolve the Alias for the CommonDir parameter.
-7 --  Failed to allocate the needed TLS slot - TLS stands for Thread Local Storage so that unique data is stored for each thread, and certain variables are shared between all GMx32 threads.
-8 --  General failure - this is a catch all error in 6.7. In 7.0 these have been expanded to -11 through -19
-9 --  No access to files for this user - you've either passed an invalid user for the dataset, or no user at all.

Added in 6.7:
-10 --  No SQL credentials - you should set the SQL credentials for this user in the user's GM preferences dialog.

Added in 7.00.51208 are more detailed errors that would have just been -8 and they mirror the first 9 returns, except for -8. These are all VERY BAD ERRORS:

-11 --  FATAL Exception captured on DB Engine Initialization
-12 --  FATAL Exception captured on user/alias cleanup
-13 --  FATAL Exception captured when loading license file
-14 --  FATAL Exception captured when validating user credentials
-15 --  FATAL Exception captured when validating Gold Alias
-16 --  FATAL Exception captured when validating Common Alias
-17 --  FATAL Exception captured on extract_TLS()
-18 --  FATAL Exception captured on attempt to read user SQL credentials - this is either an intermittant data read problem (network not available) or it has no access to license.bin.
-19 --  FATAL Exception captured when checking file access

7.0 in general adds:
-20 -- Invalid data dictionary - cannot read/find datadict.xml or datadict67.xml. The file can't be found, or the file has been corrupted. Reinstall a good copy.

_________________
Doug Castell

GoldMine Sales and Support:
http://www.castellcomputers.com/
office: (310)601-4738
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number

-4 error on load of DLL
  ContactReview Forum Index » GoldMine Coders
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 7 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic  


Brought to you by Castell Computers, Doug Castell, Admin
RSS Feed
Powered by phpBB © 2001-2004 phpBB Group
Theme created by Vjacheslav Trushkin