Can I destory a instance?

xky

Member
Licensed User
Longtime User
I created a instance by a class, if I no longer use it, can I finish it?:sign0104:
 
Last edited:

xky

Member
Licensed User
Longtime User
I don't want to destory class but only instance.
For example, I create 10 instance from a class, if I don't need 3 instance of the 10 instance, how can I destory this 3 instance?
 
Last edited:
Upvote 0

xky

Member
Licensed User
Longtime User
I dont't understand clearly.

Can you aswer some case?

1. In an activity, I created 10 instance (Dim Man(10) as Man) by a class (name Man),if I use all instance for programming,but when I want destory some instance(such as Man(1).HP=0, means Man(1) dead),how can I destory it?(I need to release the memory) If Mans in a List, can it be destory when I Remove it from the List?

2.In an activity, I created 10 instance (Dim Man1,Man2,...,Man10 as Man) by a class (name Man),if I use 3 instance for programming, when the other instance be destoried? Will they be destoried when the activity finished?

3. in an activity can I destory an instance manully?:sign0085:
 
Last edited:
Upvote 0
Top