Il 17/08/2010 11.21, Dan Kennedy ha scritto:
>> I'm using SQLITE_STATIC since the memory buffer returned by
>> cStringUsingEncoding should be valid until the object is deallocated,
>> which doesn't happen until after the statement is executed.
>>     
> You could try using SQLITE_TRANSIENT instead to verify this.
>   

I tried and it did indeed fix the issue. Since I'm not deallocating any
memory however this means that the garbage collector is. This conflicts
with the Apple documentation, that states that the buffer provided by
NSString objects should persist until the owner object itself is
deallocated... This apparently is not the case in Snow Leopard, or they
have changed something else that broke it.

Thanks for the help!


_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to