简体   繁体   English

sqlite finalize 语句的奇怪行为。 应用商店审核过程中应用被拒绝的可能性很高

[英]Strange behaviour of sqlite finalize statement. High Chances of App Rejection in Appstore review Process

Today I have faced very strange behavior of sqlite3_finalize statement.今天我遇到了sqlite3_finalize语句的非常奇怪的行为。

I am using sqlite since last 2 years and didn't faced such problem before.自过去 2 年以来,我一直在使用 sqlite,之前没有遇到过这样的问题。

Issue is:问题是:

My whole app is working fine when my xcode Active configuration is in debug mode.当我的 xcode 活动配置处于调试模式时,我的整个应用程序工作正常。 As soon as I switched Active Configuration from Debug to Release, my app starts crashing at sqlite3_finalize statement in my Database Manager class.一旦我将活动配置从调试切换到发布,我的应用程序就开始在我的数据库管理器 class 中的sqlite3_finalize语句处崩溃。

Anyone can suggest some possible solution?任何人都可以提出一些可能的解决方案? I have given Appstore release as well and I am pretty sure app will be rejected because appstore build will always be in Release Configuration mode and it will crash in Review period.我也发布了 Appstore 版本,我很确定应用程序将被拒绝,因为 appstore 构建将始终处于发布配置模式,并且它会在审核期间崩溃。

Thanks谢谢

Maybe you use amalgamation code from sqlite.org and configured it only for " Debug " build?也许您使用来自 sqlite.org 的合并代码并将其配置为仅用于“调试”构建? What king of error you get?你得到什么错误之王? Debugger should said something about crash.调试器应该说一些关于崩溃的事情。

I was calling another sql operation on insertion failure... so i fixed the issue by closing previous sql operation我在插入失败时调用了另一个 sql 操作......所以我通过关闭之前的 sql 操作来解决这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM