Re: How do I access the data contained within the performUpdate function's boundData parameter?
Peter Gutmann <[email protected]>
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
Ed Curren <[email protected]> writes: >Thanks very much for the info. I am still running into an issue that is >confusing me. When I call the boundData[0].type (or any other struct member) >in performUpdate I get an error of: > >Unhandled exception at 0x102a02fc (cl32.dll) in cl333test.exe: 0xC0000005: >Access violation reading location 0x00000122. > >My processUpdate code (stripped down for testing) is: > >static int performUpdate( DBMS_STATE_INFO *dbmsInfo, const char *command, >const void *boundData, const int boundDataLength, const time_t boundDate, >const DBMS_UPDATE_TYPE updateType ) >{ > BOUND_DATA *data = boundData; > BOUND_DATA_TYPE bdt = data[0].type; > > return CRYPT_OK >} Hmm, that should work OK. Could you try cutting and pasting the code for performUpdate() from keyset/odbc.c (just comment out whatever's needed to get it to compile) and see what happens? Even just the assert()s at the start should be enough to make sure everything is OK. Peter. _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.