Тимофей Даньшин wrote:

To be on the safe side, i make a local copy of the method's input string.

Maybe the lifetime of the local copy is less than what SQLite needs.

I see in your code that you're releasing the copy, but is SQLite asynchronous and still needing the buffer to exist at that point?

If you don't use a copy of the arg string, but the original arg itself, does that change anything?

If you intentionally leak the copy, by not releasing it, does that change anything?

How about autoreleasing the copy, which defers the actual release until later?

I'm not suggesting that any of these are fixes, just different things to test and observe, that may lead to more clues.

  -- GG

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to