掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
タブに貼り付けたクラスの破棄は? (ID:34474)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
> ちなみにインスタンス1個に対してオブジェクト(ポインタ)複数 > なんて場合もあります。 > (略) > buttonC.freeすればほかの二つはfree不要です。 しかし、変数の値がnilになるわけではないので注意。 これは、結局全部Freeしにいこうとして、アクセス違反になる。 if buttonA <> nil then buttonA.Free; if buttonB <> nil then buttonB.Free; if buttonC <> nil then buttonC.Free;
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.