V4CC - crash on createField

Ernesto Giannotta ernestogiannotta at tiscalinet.it
Sun Aug 2 12:00:28 CDT 2009


Hi Ruslan,

I'm trying examples for V4CC but just can't get it to work...

any call attempting to create a field like:

	[mpTblPerson createVarCharField:@"FirstName" maxLength:20]

crashes with EXC_BAD_ACCESS here in a __pool_free call:

0x012848d8  <+0000>  push   %ebp
0x012848d9  <+0001>  mov    %esp,%ebp
0x012848db  <+0003>  sub    $0x18,%esp
0x012848de  <+0006>  mov    0xc(%ebp),%edx
0x012848e1  <+0009>  mov    0x8(%ebp),%ecx
0x012848e4  <+0012>  test   %edx,%edx
0x012848e6  <+0014>  je     0x128491c <__pool_free+68>
0x012848e8  <+0016>  mov    -0x4(%edx),%eax
0x012848eb  <+0019>  test   $0x1,%al
0x012848ed  <+0021>  jne    0x12848f4 <__pool_free+28>
0x012848ef  <+0023>  mov    0x8(%eax),%eax
0x012848f2  <+0026>  jmp    0x12848fd <__pool_free+37>
0x012848f4  <+0028>  mov    -0x8(%edx),%eax
0x012848f7  <+0031>  and    $0xfffffff8,%eax
0x012848fa  <+0034>  sub    $0x8,%eax
0x012848fd  <+0037>  cmp    $0x44,%eax
0x01284900  <+0040>  ja     0x1284914 <__pool_free+60>
0x01284902  <+0042>  mov    %eax,0x8(%esp)
0x01284906  <+0046>  mov    %edx,0x4(%esp)
0x0128490a  <+0050>  mov    %ecx,(%esp)
0x0128490d  <+0053>  call   0x12847e6 <deallocate_from_fixed_pools>
0x01284912  <+0058>  jmp    0x128491c <__pool_free+68>
0x01284914  <+0060>  leave
0x01284915  <+0061>  mov    %ecx,%eax
0x01284917  <+0063>  jmp    0x1284778 <deallocate_from_var_pools>
0x0128491c  <+0068>  leave
0x0128491d  <+0069>  ret

where am I wrong?


Cool Runnings,
Erne.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macserve.net/pipermail/valentina/attachments/20090802/76667cb2/attachment-0001.html 


More information about the Valentina mailing list