On 10/06/07 14:09, Laurent Vivier wrote: > Hi, > > I'm trying to debug my application syncefs. > > the problem is as following : > > in my application, sizeof(CE_FIND_DATA) = 552 but in librapi2, > in _CeFindAllFiles it seems to be 560 : > > src/rapi/file_management.c > > 71: CE_FIND_DATA* array = calloc(count, > sizeof(CE_FIND_DATA)); > > 0xb7f78c31 <_CeFindAllFiles+200>: mov 0xffffffec(%ebp),%eax > 0xb7f78c34 <_CeFindAllFiles+203>: movl $0x230,0x4(%esp) > 0xb7f78c3c <_CeFindAllFiles+211>: mov %eax,(%esp) > 0xb7f78c3f <_CeFindAllFiles+214>: call 0xb7f71398 <[EMAIL PROTECTED]> > > If I compile librapi2 and pls on my system all is working fine, if I use > librapi2 (0.9.3) from Debian etch and I compile pls on my system, when I > run pls I have same issue. > > An idea why size of is different between librapi2 and my application ? > I use gcc 4.1 but I have same behaviour with gcc-3.4.
I think you're picking up an out-of-date <synce_types.h> from somewhere. See <http://www.mail-archive.com/synce-devel@lists.sourceforge.net/msg00341.html> for the patch that changed MAX_PATH from 256 to 260. This accounts for the 8 byte difference in size that you are seeing in CE_FIND_DATA, and also affects a few other types in <rapi.h>. -- -=( Ian Abbott @ MEV Ltd. E-mail: <[EMAIL PROTECTED]> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ SynCE-Devel mailing list SynCE-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synce-devel