Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64bit version crashes #18

Open
KallunWillock opened this issue Jul 9, 2023 · 3 comments
Open

64bit version crashes #18

KallunWillock opened this issue Jul 9, 2023 · 3 comments

Comments

@KallunWillock
Copy link

I just tried running the demo routine, and it crashed Excel four out of four times. I stepped through the code, and it crashes on the operative line of the SQLite3BackupStep routine.

I believe this is a result of the sqlite3_backup_init API declaration, which appears to return a Long data type, which is then passed to the BackupStep routine as the backuphandle (LongPtr). I changed the sqlite3_backup_init API declaration to return a LongPtr instead (as below) and it no longer crashes.

Private Declare PtrSafe Function sqlite3_backup_init Lib "SQLite3" (ByVal hDbDest As LongPtr, ByVal zDestName As LongPtr, ByVal hDbSource As LongPtr, ByVal zSourceName As LongPtr) As LongPtr
@govert
Copy link
Owner

govert commented Jul 9, 2023

I thought I fixed it here last year. 8f233e6
Did I miss something?

@KallunWillock
Copy link
Author

I'm guessing the change wasn't made to the code in the XLSM file (Distribution Folder)?

@KallunWillock
Copy link
Author

KallunWillock commented Jul 12, 2023

I just checked. It looks like you updated the BAS file 4 years ago but the demonstration workbooks were last updated 7 years ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants