Waitrud Weber’s blog

things and reminders for memories

3d: WindowsAPI: Check if Memories are free or not: Garbage Collection:

Garbage Collection:

We decided to chek if memories are free or not, because we could not free such memories.

 

 

202 ://
203 ://
204 ://
205 ://
206 ://
207 :void garbage_memores () {
208 :	for( int i=0; i<dummy_vPoint_index; i++ ) {
209 :		log_msg_003("|%3d|%p|\r\n", i, dummy_vPoint[i] );
210 :		if ( dummy_vPoint[i] == nullptr ) {
211 :			log_msg_003("we found freed memory.\r\n");
212 :			exit(-1);
213 :		}
214 :	}
215 :}