Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-26-2009, 06:09 PM   #1 (permalink)
Registered Member
 
Eagle11's Avatar
 
Join Date: Aug 2009
Age: 20
Posts: 197
Eagle11 is on a distinguished road
Default Program not working when run on device?

Earlier today, I got my activation code, and joined the developer program. I set up my application to test it on my ipod touch, and ran it. In my application, I have a timer which runs constantly and updates a label. For some reason, when I ran the program on the device it only updated once.

I have no idea where to start with this issue, because everything works correctly on the simulator! any help would be greatly appreciated.
Thanks.
Eagle11 is offline   Reply With Quote
Old 08-26-2009, 08:23 PM   #2 (permalink)
Registered Member
 
Eagle11's Avatar
 
Join Date: Aug 2009
Age: 20
Posts: 197
Eagle11 is on a distinguished road
Default

Quote:
Originally Posted by Eagle11 View Post
Earlier today, I got my activation code, and joined the developer program. I set up my application to test it on my ipod touch, and ran it. In my application, I have a timer which runs constantly and updates a label. For some reason, when I ran the program on the device it only updated once.

I have no idea where to start with this issue, because everything works correctly on the simulator! any help would be greatly appreciated.
Thanks.
Does anyone have any idea why the timer didn't work correctly or how to fix it?
Eagle11 is offline   Reply With Quote
Old 08-26-2009, 11:16 PM   #3 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Quote:
Originally Posted by Eagle11 View Post
Does anyone have any idea why the timer didn't work correctly or how to fix it?
Either you used a method that doesn't exist on the iPhone, or more likely you broke a memory management rule (released too soon, or forgot to retain).

Try adding breakpoint to the method called by your timer - make sure it's getting reached, and that all the variables contain what you expect.
__________________

Free Games!
smasher is offline   Reply With Quote
Reply

Bookmarks

Tags
device, timer

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 328
13 members and 315 guests
chiataytuday, coolman, givensur, glenn_sayers, guusleijsten, ipodphone, jbro, mediaspree, mottdog, mtl_tech_guy, Punkjumper, vilisei, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:29 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0