Access violation in Esent

Jan 23, 2014 at 12:12 PM
I am running jet compact on a 30GB database, and I am getting the following:


Unhandled exception at 0x0000000000000000 in Raven.Server.exe: 0xC0000005: Access violation executing location 0x0000000000000000.
>   0000000000000000()  Unknown
    esent.dll!00007ffcf8d2800c()    Unknown
    esent.dll!00007ffcf8d27d7d()    Unknown
    esent.dll!00007ffcf8cb3d53()    Unknown
    esent.dll!00007ffcf8cb3732()    Unknown
    esent.dll!00007ffcf8cb3fa6()    Unknown
    esent.dll!00007ffcf8cb5211()    Unknown
    esent.dll!00007ffcf8ce1450()    Unknown
    esent.dll!00007ffcf8ce16e9()    Unknown
    00007ffc9e3ab048()  Unknown
    00007ffc9e3aaab6()  Unknown
    00007ffc9e3aa9c5()  Unknown
    00007ffc9e3aa548()  Unknown
    00007ffc9df52f23()  Unknown
    clr.dll!00007ffcfd2eb915()  Unknown
    clr.dll!00007ffcfd2eb80b()  Unknown
    clr.dll!00007ffcfd2eb728()  Unknown
    ntdll.dll!00007ffd0eea929d()    Unknown
    ntdll.dll!00007ffd0ee6314d()    Unknown
    clr.dll!00007ffcfd2ed1c0()  Unknown
    clr.dll!00007ffcfd2ed174()  Unknown
    ntdll.dll!00007ffd0eea921d()    Unknown
    ntdll.dll!00007ffd0ee65b5b()    Unknown
    ntdll.dll!00007ffd0ee67f98()    Unknown
    KernelBase.dll!00007ffd0c44ab78()   Unknown
    clr.dll!00007ffcfd2ec6d8()  Unknown
    clr.dll!00007ffcfd2edf82()  Unknown
    00007ffc9dc0c93d()  Unknown
    00007ffc9df52a4d()  Unknown
    00007ffc9df507af()  Unknown
    00007ffc9dbf4054()  Unknown
    00007ffc9e3a4de7()  Unknown
    mscorlib.ni.dll!00007ffcfc04a09f()  Unknown
Any ideas?
Jan 23, 2014 at 12:19 PM
The code we call is:
using (var session = new Session(compactInstance))
{
    Api.JetAttachDatabase(session, src, AttachDatabaseGrbit.None);
    try
    {
        Api.JetCompact(session, src, compactPath, statusCallback, null,
                   CompactGrbit.None);
    }
    finally
    {
        Api.JetDetachDatabase(session, src);
    }
}