0031075: Application Framework - reading STEP file into TDocStd_Document leads to...
[occt.git] / tests / bugs / caf / bug31075
CommitLineData
ef779ae0 1puts "============"
2puts "0031075: Application Framework - reading STEP file into TDocStd_Document leads to memory leaks"
3puts "============"
4
5pload XDE
6
7puts "Create a new document outside of application, add a shape an release all variables in cycle to see if allocated heap memory grows"
8set listmem {}
9for {set i 1} {$i < 100} {incr i} {
10 NewDocument D
11 box aBox 10 10 10
12 XAddShape D aBox
13 unset aBox
14 unset D
15 lappend listmem [meminfo h]
16 checktrend $listmem 0 0 "Memory leak"
17}