Objective-C - How to force low memory on iOS simulator -


i have error users having of exc_bad_access when device low on memory. stack trace pointing if line below, , believe it's because of utf8string that's being deallocated , still being used:

dispatch_sync(dbqueue, ^{     if (sqlite3_bind_text(sql_stmt, 1, pid.utf8string, -1, sqlite_static) != sqlite_ok) { ... 

i'm having hard time reproducing issue on end, how can force or simulate low-memory on simulator or device?

update:

i've tried adding breakpoint line above, , using option simulator -> simulate memory warning, still can't reproduce exc_bad_access error.

in simulator there menu item: hardware : simulate memory warning

or

shiftcommandm


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -