SQLBase API - sqlldp (Load Database)

forum.sqlbase (1998-2017)

SQLBase API - sqlldp (Load Database)

Post by KCL » 13 Nov 2009, 15:46


By calling sqlldp(...) i.e.LOAD DATABASE, sometimes it returns an error number (e.g. 32571392 or 31850496) even the loading is successful.
I checked the loading log file, it did say 'Load complete' and no error and I did a 'check database' and no error found

And then I found 'SQLBase 11.5. Service Pack 1 List: Defects Fixed' :
http://www.md-consulting.de/PortalData/ ... uglist.pdf
It says:
SQLB‐474 The return value of sqlldp and sqlunl do not return zero on successful load or unload As Designed

I don't understand what it means by 'As Designed' .... does anybody know any deails about the 'design' and what we should we check (error number)?

Best regards,


Mike Vandine

Re: SQLBase API - sqlldp (Load Database)

Post by Mike Vandine » 16 Nov 2009, 05:04

Hi KC,

The reason for the defect being closed 'as designed' is because there isn't really a defect there, but I suspect that you are running into the same issue that the customer who reported this ran into.

The TD app submitted had the incorrect prototype for the sqlldp and sqlunl functions. The functions return a 16-bit value (WORD), but the TD app was listed as having a 32-bit value (INT).

So, try changing the Return: INT to Return: WORD in the function definition and you should be fine.

Best regards,


Re: SQLBase API - sqlldp (Load Database)

Post by KCL » 16 Nov 2009, 11:10

Thanks Mike

Return to “forum.sqlbase”

Who is online

Users browsing this forum: [Ccbot] and 0 guests