2010年12月09日 過去Blog

このエラーは、autorelease によってリリースされた(される)コントロールを自分自身で release を読んで解放しようとした時に、おこるエラーの様です。

私の場合は、以下のようなコードを実行したら3回ほどクリックすると落ちました。

ボタンをクリックするとdivision.text にデータベースから抜き出した文字列を表示するというコードです。

division.text = [NSString stringWithUTF8String

🙁char *)sqlite3_column_text(statement, 2)];

//これを入れるとmodifying layer that is being finalized エラー

[division release];

UILabel のdivision は自分で releaseをしなくても、autorelease されるということなんでしょうか。 なんにせよ、以下のようにコメントアウトすることで、動作するようになりました。

//これを入れるとmodifying layer that is being finalized エラー

//[division release];

この投稿へのコメント

コメントはまだありません。

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます。
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA


ピックアップ記事

PHP strstr stristr ある文字列が含まれるかどうか調べる

2010年06月11日 過去Blog
$string = 'Hello World!'; if(stristr($string, 'earth') === FALSE) { echo '"earth" not found in string'; } // 出力は "earth" not found in string となります 参照元:http://www.php.net/manual/ja/function.st…
「PHP strstr stristr ある文字列が含まれるかどうか調べる」をはてなブックマークに追加

Drupal6でクリーンURL

2011年04月25日 過去Blog
.htaccessに以下を記述してルートに設置 # Various rewrite rules. <IfModule mod_rewrite.c>   RewriteEngine on   # Modify the RewriteBase if you are using Drupal in a subdirectory and   # the rewrite rules are n…
「Drupal6でクリーンURL」をはてなブックマークに追加

addressbook内のデータをtableViewに表示させる

2011年01月17日 過去Blog
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusab…
「addressbook内のデータをtableViewに表示させる」をはてなブックマークに追加

UIDatePicker + UIActionSheet で日付選択が面を作成

2011年05月03日 過去Blog
http://stackoverflow.com/questions/349858/fitting-a-uidatepicker-into-a-uiactionsheet 上記サイトの一番したのコメント内のコードが正常に動きます。 showInViewで設定するviewは以下のサイトを参考に http://d.hatena.ne.jp/griffin-stewie/20090220/p1
「UIDatePicker + UIActionSheet で日付選択が面を作成」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy