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 Tutorials > Tutorial Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 09-20-2008, 04:56 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 24
MiniMacLean is on a distinguished road
Default Playing Short Sound - 'return self' crash!

I know there are many threads on this but.. i have a different problem to everyone else seems to have,

I have no errors or alerts of nothing but, it opens the app up in the simulator and just goes onto a black screen, then xcode pops back up again and it says:



at the bottom of the window, it also highlights and points at:
Code:
return self
like this:



here is my SoundEffect.h file
Code:
#import "SoundEffect.h"


@implementation SoundEffect

- (id)initWithContentsOfFile:(NSString *)path;
{
	self = [super init];
	if (self != nil) {
		NSURL *filePath = [NSURL fileURLWithPath: path isDirectory:NO];
		
		AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
	}
	return self;
}


-(void)play { 
	
	AudioServicesPlaySystemSound(soundID); 
}



@end
and i can upload the rest of the code if needed,

but have any ideas why its doing this?
MiniMacLean is offline   Reply With Quote
Old 09-22-2008, 11:08 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 24
MiniMacLean is on a distinguished road
Default

anyone know why this is crashing?
MiniMacLean is offline   Reply With Quote
Old 10-02-2008, 11:40 AM   #3 (permalink)
New Member
 
Join Date: Oct 2008
Posts: 1
digitaljez is on a distinguished road
Default That is no crash.

That is a breakpoint. GDB is the debugging software and it lets you stop the program in mid flow so you can see what is happening.
Right click on the blue pointer in the left margin and select remove breakpoint and , hopefully, it should run.

Last edited by digitaljez; 10-02-2008 at 11:42 AM. Reason: typed DGB instead GDB
digitaljez is offline   Reply With Quote
Reply

Bookmarks

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
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,959
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

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