mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
41 lines
939 B
Plaintext
Executable File
41 lines
939 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC5682"
|
|
puts "============"
|
|
puts ""
|
|
######################################################
|
|
# AIS_InteractiveContext::Remove does not remove the object from memory
|
|
######################################################
|
|
|
|
set BugNumber OCC5682
|
|
|
|
set aNbBoxes 10
|
|
set aBoxes {}
|
|
for {set i 1} {$i <= $aNbBoxes} {incr i} { box b$i $i 0 0 1 2 3; lappend aBoxes b$i }
|
|
box b 1 1 1
|
|
|
|
vclear
|
|
vinit View1
|
|
catch {vselmode 4 1}
|
|
vdisplay b
|
|
vfit
|
|
vclear
|
|
|
|
set listmem {}
|
|
set aNbChecks 50
|
|
set aMemBase [meminfo h]
|
|
puts "Memory base: [expr $aMemBase / 1024] KiB"
|
|
for {set anIter 1} {$anIter <= $aNbChecks} {incr anIter} {
|
|
vdisplay {*}$aBoxes
|
|
vfit
|
|
set aMemDisp [meminfo h]
|
|
puts "Memory usage: [expr ($aMemDisp - $aMemBase) / 1024] KiB"
|
|
|
|
vclear
|
|
set aMemCleared [meminfo h]
|
|
lappend listmem $aMemCleared
|
|
#checktrend $listmem 0 1 "Memory leak detected"
|
|
}
|
|
puts $listmem
|
|
vglinfo
|
|
checktrend $listmem 0 1 "Memory leak detected"
|