Waitrud Weber’s blog

things and reminders for memories

3d: memory-free problem:

https://github.com/WaitrudWeber/source_zip/blob/master/analyzer_20191222-001.zip We can not free memories.

>winmain_001.exe
curve_p : |00810F00|
p( 10.000000, 10.000000, 10.000000)
curve_p : |00810F78|
p( 14.000000, 14.000000, 14.000000)
curve_p : |00810FC0|
p( 26.000000, 26.000000, 26.000000)
curve_p : |00811090|
p( 46.000000, 46.000000, 46.000000)
curve_p : |0081AC80|
p( 74.000000, 74.000000, 74.000000)
p1 : |008111D8|
p2 : |00811130|
p3 : |00811148|
p4 : |00811160|
i:   0 p: 00810F00
i:   1 p: 008111D8
i:   2 p: 00811130
i:   3 p: 00811148
i:   4 p: 00811160
i:   5 p: 00811178
i:   6 p: 00811190
i:   7 p: 00810F00
i:   8 p: 00811108
i:   9 p: 00810F60
i:  10 p: 00810F78
i:  11 p: 00810F90
i:  12 p: 00810FA8
i:  13 p: 00810FC0
i:  14 p: 00810FD8
i:  15 p: 00810FF0
i:  16 p: 00811090
i:  17 p: 0081ADB8
i:  18 p: 0081AD10
---
.\011-Main.cpp
  1 :#include
  2 :#include
  3 :
  4 ://#include "Parent.h"
  5 ://#include "Child.h"
  6 :
  7 :#include "vPoint.h"
  8 :#include "vLine.h"
  9 :#include "vCalculation.h"
 10 :#include "vCurveCalculation.h"
 11 :
 12 :
 13 :int index = 0;
 14 :int index_max = 0;
 15 :vPoint** dummy_arry = nullptr;
 16 :
 17 :void put_points( vPoint* p ) ;
 18 :
 19 :// p1: Anchor
 20 :// p2: setting controls
 21 ://
 22 :// p3: Anchor(next)
 23 :// p4: setting controls
 24 ://
 25 :int main () {
 26 :
 27 :	vCurveCalculation* calc_curve = new vCurveCalculation ();
 28 :	vCalculation* calc = new vCalculation();
 29 :
 30 :	vPoint* p1 = memorizevPoint (  10.0f,  10.0f,  10.0f);
 31 :	vPoint* p2 = memorizevPoint (  30.0f,  30.0f,  30.0f);
 32 :	vPoint* p3 = memorizevPoint ( 110.0f, 110.0f, 110.0f);
 33 :	vPoint* p4 = memorizevPoint (  80.0f,  80.0f,  80.0f);
 34 :
 35 :	int devide = 5;
 36 :	for( int i=0; i<devide; i++ ) {
 37 :		float t = (float)i / (float) devide;
 38 :		vPoint* curve_p = (vPoint*) calc_curve->BattleField ( p1, p2, p3, p4, t );
 39 :		// put_points( curve_p );
 40 :		printf("curve_p : |%p| \r\n", curve_p );
 41 :		curve_p->print();
 42 :	}
 43 :
 44 :	free(p1);
 45 :	free(p2);
 46 :	free(p3);
 47 :	free(p4);
 48 :
 49 :	printf("p1 : |%p| \r\n", p1 );
 50 :	printf("p2 : |%p| \r\n", p2 );
 51 :	printf("p3 : |%p| \r\n", p3 );
 52 :	printf("p4 : |%p| \r\n", p4 );
 53 :
 54 :	calc->Print_Point_Memories ();
 55 :
 56 :	return 0;
 57 :}
 58 :
 59 :

https://waitrudweber.hatenablog.com/