Waitrud Weber’s blog

things and reminders for memories

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

20200212
Free or Dispose:
We'd rather love to use "Dispose" in C++.

---

We cannot find memories free but find allocation themselves, which means doesn't stop execution at line 212.

202 ://
203 ://
204 ://
205 ://
206 ://
207 :void garbage_memories () {
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 :
216 : // 20200126 temporalily we quit.
217 : if ( dummy_vPoint_index > 0 ) {
218 :  printf("dummy_vPoint_index=|%3d|\r\n", dummy_vPoint_index );
219 :  exit(-1);
220 : }
221 :}
222 :

put_line: this->print_lines_num=23
put_line: this->print_lines_num=24
PointLinear::put_line ENDS.
this->curve_points_num = 20
this->print_lines_num = 24
void vPointLinear::CurveRevisement () ENDS.
CurveLines_Support: ENDS
ends curve_initialization()
display_threeD_screen_initialize:memorized_CurveLines=1
initialize 8 ends.
wButtonController::ProcessWmKeyup: Ends:WM_MESSG 004: 257 *(p_evt->uMsg):257 uMsg:257 p_evt->uMsg: 2686208 &uMsg: 26862
8
WM_MESSG 000: hWnd 328178: uMsg 15: wParam 0: lParam 0: canvas 4366736: btc 4366752: *(p_evt->uMsg) 15:
WM_PAINT 001: 15 *(p_evt->uMsg):15 uMsg: 15
dummy_vPoint_index=|955|