I could probably test this but someone may have a quick answer.
Say I have a type A, and one of it's fields (called P) points to another type B. Then I make an instance of type A and Type B, then I do A.P = B. Then later on I do B=null, I know that the GC won't collect it because A.P still exists. So my question is, if I do A=Null will Bmax automatically do A.P=null so that B can be GCed or do I have to "manually" free up any such type pointers. Thanks.
I've been working on the theory than you don't need to manually free them (unless they contain something that need special behaviour like Sound Channels or maybe lists (can't remember if MyList=null is safe or if you have to use MyList.Clear() so I always use Clear()).
Say I have a type A, and one of it's fields (called P) points to another type B. Then I make an instance of type A and Type B, then I do A.P = B. Then later on I do B=null, I know that the GC won't collect it because A.P still exists. So my question is, if I do A=Null will Bmax automatically do A.P=null so that B can be GCed or do I have to "manually" free up any such type pointers. Thanks.
I've been working on the theory than you don't need to manually free them (unless they contain something that need special behaviour like Sound Channels or maybe lists (can't remember if MyList=null is safe or if you have to use MyList.Clear() so I always use Clear()).