Skip to content

64bit version crashes #18

Description

@KallunWillock

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

Activity

  1. govert commented on Jul 9, 2023

    @govert
    Owner

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

  2. KallunWillock commented on Jul 10, 2023

    @KallunWillock
    Author

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

  3. KallunWillock commented on Jul 12, 2023

    @KallunWillock
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions