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

View Single Post
Old 12-24-2009, 06:36 AM   #15 (permalink)
Johanovski
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Johanovski is on a distinguished road
Default

Hi again!

I think I understand what you mean, but still not knowing how to make it works... I've tried with the following code:

************************************************** ***
UIImage* img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"sangnormal01" ofType:@"png"]];
texMoscaNormal[0][0] = [[Image alloc] initWithImage:img];
[img release];
************************************************** ***

So a UIImage* is created, the UIImage is allocated inside it's own method (so no additional alloc is called), then the Image class is initialized with a UIImage, and after this the UIImage* is released... I think this is the theory, more or less, but when I try to run the app...

----------------------------------------------------------------------
[1541:207] *** -[UIImage release]: message sent to deallocated instance 0x3b37a20
----------------------------------------------------------------------

Seems that log says UIImage is never allocated, so releasing is not possible... it's losing sense as time passes!

Thanks Jack!
Johanovski is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,421
Threads: 94,016
Posts: 402,538
Top Poster: BrianSlick (7,978)
Welcome to our newest member, maryleeag34
Powered by vBadvanced CMPS v3.1.0

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