Frage


Ich habe das gleiche Projekt, das am Anfang funktionierte es auch auf dem iPad, aber jetzt funktioniert es nur auf iPhone-Geräten, nicht ipad diejenigen. Es ist ein Projekt iphone / ipad compatibile.

Wahrscheinlich i bearbeiten etwas, aber ich weiß nicht, wie es geht!

Der zurückgegebene Fehler in DEBUG || RELEASE-Modus auf iPad Gerät war die klassische:

*** -[CFString release]: message sent to deallocated instance 0x110500

... aber auf dem iPhone, es ist alles in Ordnung.
Ich kann, um das Debuggen nicht in der Lage, weil es mir nur Assembler-Code zeigen und ich weiß nicht, wo das Problem ist ...

Ist das Problem appened um? Es ist mein Problem oder ipad Problem?
Was auf diesen Geräten anders sein könnte?

Danke, alberto.

War es hilfreich?

Lösung

It's possible that you're linking against an older version of the frameworks on the iPhone and a newer version on the iPad. If the older version was inadvertently leaking a string, it's likely that the leak was fixed in a newer version of the framework.

At any case, it ultimately means that you're not managing your memory correctly. Any time you see "message sent to deallocated instance", it means you've under-retained or over-released an object. Search this site for how to use NSZombieEnabled (or the Zombies tool in Instruments). Those answers will give you the best information on how to track down the source of the bug. :)

Andere Tipps

Resolved.
It was a stupid NSString release.

Now is fixed, but this problem occurs only on ipad! :) don't know why!

thanks.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top