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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-19-2009, 07:15 AM   #8 (permalink)
arjit292
New Member
 
Join Date: Jan 2009
Posts: 60
Default

i have a function
Code:
// this is the header 
@interface MyClass
{
    theclass * obj;
}


// this is the .m file 
-(void) doSomething{
    obj=[[theclass alloc] init];
}

-(void)something{
    theclass=nil;
    obj=[[theclass alloc] init];
}
so in something function it is getting a bad memory error how do this ?
i need to init the same object again and again ....
how do i do that again ?
any help

Last edited by arjit292; 05-19-2009 at 07:32 AM.
arjit292 is offline   Reply With Quote
 

» Advertisements
» Online Users: 634
14 members and 620 guests
apatsufas, ckgni, Dani77, Domele, drewrico, handmachine, Harisstimolth5, JamesCahall, Janyeok, mistergreen2011, Monstertaco, noobAppDeveloper, Oral B, rimap123
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,789
Threads: 89,205
Posts: 380,603
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Harisstimolth5
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:29 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.