Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7494809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:47:15+00:00 2026-05-29T17:47:15+00:00

Or at least I can’t figure out how to locate the error. I’ve read

  • 0

Or at least I can’t figure out how to locate the error. I’ve read a ton of stuff but every time I go into my Product scheme and turn on Guard Malloc my program won’t run.

The line of code that is giving me the problem is this… It happens on the NSString *str = … line

- (void) setVolumeCompletionDate: (NSString *)volumeID: (double)completionDate
{
    sqlite3_stmt *pStmt;
    NSString *str = [NSString stringWithFormat:@"UPDATE Volumes SET GoalDate = %d WHERE VolumeID = '%@'", completionDate, volumeID];

    //more stuff
}

If I hardcode the completionDate value (1350129600) on that line, the code works just fine, so it seems from everything I’ve read that the memory of completionDate is getting stepped on somewhere, or something bad is happening. My project is set up for ARC.

I think part of my problem is I don’t even know where to go to begin to resolve this problem. I don’t even know what to search for. All of the posts I’ve read about tracking it down with some Malloc tool don’t make sense because I can’t get that to run.

I would like to be able to figure this out. Maybe I need more, and complete steps, for debugging and tracing through things. Many of the answers I’ve read seem like they are written for people who know everything, because so much is left out of the answer, or so much is assumed about the person asking the question. If there is a better place for me to go to ask my question, please point me in that direction.

Thanks a lot. I appreciate your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:47:16+00:00Added an answer on May 29, 2026 at 5:47 pm

    completionDate is a double, so use %f instead of %d.

    https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this has been asked at least a thousand times but I can't
simple problem, but perhaps no simple solution, at least I can't think of one
I've got a case where I just can't figure out how to get Ant
How can I find the least prime number greater than a given number? For
How can I find elements that has at least one attribute? Example: <tr>...</tr> <tr
Can Silverlight play video with transparency ? At least some tricky way for color
In UML sequence diagram a method can have only one return line (at least
To ensure a script has at least version X of perl, you can do
I swear this script worked fine last night but can't get it to work
Since CouchDB has very few API documentation (at least I can not find it),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.