Hi I'm trying to use SQLite Encryption Extension on Windows Mobile 5.0 but I'm getting a "Datatype misalignment" error inside rijndaelKeySetupEnc256 function.
The Datatype misalignment occurs on the line: rk[0] = GETU32(cipherKey ); I'm using sqlite 3.6.10 with see.h Here is the complete stack trace (MSVC2005): > gtifw.dll!rijndaelKeySetupEnc256(unsigned int* rk = 0x004c218c, const unsigned char* cipherKey = 0x004c22a3) Line: 103337, Byte Offsets: 0x20 C gtifw.dll!loadKeyAny(CodecAny* pCodec = 0x004c2188, const void* pKey = 0x00db4f80, int nKey = 5) Line: 104002, Byte Offsets: 0x27c C gtifw.dll!sqlite3CodecAttach(sqlite3* db = 0x004b4908, int iDb = 0, const void* pKey = 0x00db4f80, int nKey = 12) Line: 104047, Byte Offsets: 0x12c C gtifw.dll!sqlite3_key(sqlite3* db = 0x004b4908, const void* pKey = 0x00db4f80, int nKey = 12) Line: 104123, Byte Offsets: 0x9c C gtifw.dll!CFW_SQLiteDataProvider::OpenConnection(ATL::CStringT<wchar_t,StrTr aitMFC_DLL<wchar_t,ATL::ChTraitsOS<wchar_t> > >& sConnectionString = {...}, ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsOS<wchar_t> > >& sErrorMsg = {...}) Line: 117, Byte Offsets: 0xf8 C++ gtifw.dll!CFW_DataManager::CreateDataProvider(const wchar_t* sConnString = 0x00000000) Line: 186, Byte Offsets: 0x1ec C++ gtifw.dll!CFW_DataManager::Initialize(const wchar_t* sConnString = 0x00000000) Line: 103, Byte Offsets: 0xb0 C++ gtifw.dll!CFW_BaseWinApp::InitializeFramework(CFW_BaseFrameWnd* pAppFrameWnd = 0x004a9820, ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsOS<wchar_t> > >& sErrorMsg = {...}) Line: 138, Byte Offsets: 0xa0 C++ secia.exe!CSECIAWinApp::InitInstance(void) Line: 219, Byte Offsets: 0x1b8 C++ 0x00a4884c secia.exe!WinMain(HINSTANCE__* hInstance = 0x67626ad6, HINSTANCE__* hPrevInstance = 0x00000000, wchar_t* lpCmdLine = 0x2a46fec8, int nCmdShow = 5) Line: 28, Byte Offsets: 0x24 C++ secia.exe!WinMainCRTStartup(HINSTANCE__* hInstance = 0x004c218c, HINSTANCE__* hInstancePrev = 0x00000008, unsigned short* lpszCmdLine = 0x004c229c, int nCmdShow = 4989603) Line: 21, Byte Offsets: 0x38 C 0x03f7cb80 Thanks Ulric _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users