Support Board
Date/Time: Sun, 24 Nov 2024 01:20:11 +0000
Post From: Kiwi Resync Study - Memory leak?
[2018-02-27 21:33:31] |
samual sprat - Posts: 343 |
Hi All, Not sure if it's a result of the 64bit update or if it was there before (32bit was obviously memory limited to 4GB so may have hidden this issue), but when I use Kiwi Resync to refresh the study data on my chart the Commit Charge increases until my Virtual Memory is full. As soon as I remove the study the slow but incremental increase in memory usage stops straight away. I have 32GB of RAM and within 12 hours applications start to crash and Sierra is using 40GB+. Eventually I need to reboot my machine. Any idea if this is a code issue? I've posted the original Kiwi code that was remote compiled by Sierra below. FYI I'm running 64bit Sierra (1706) on Windows 10 Creator latest release. #include "sierrachart.h" SCDLLName("* Kiwi's Stuff 2015 *") /*==========================================================================*/ SCSFExport scsf_RecalcChart(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { sc.GraphName = "Recalc"; sc.StudyDescription = "Recalc Chart every x secs based on real time"; sc.Subgraph[0].Name = "Strobe"; sc.Subgraph[1].Name = "Time"; sc.Subgraph[0].DrawStyle=DRAWSTYLE_IGNORE; sc.Subgraph[1].DrawStyle=DRAWSTYLE_IGNORE; sc.Input[0].Name="Seconds between recalcs"; sc.Input[0].SetInt(60); sc.UpdateAlways=1; sc.FreeDLL = 1; return; } if (sc.CurrentSystemDateTime.GetTime() % sc.Input[0].GetInt() == 0) { if (sc.Subgraph[0][sc.ArraySize-1] < 999660) { sc.Subgraph[0][sc.ArraySize-1] = 999666; sc.Subgraph[1][sc.ArraySize-1] = sc.CurrentSystemDateTime.GetTime(); sc.FlagFullRecalculate = 1; } } else sc.Subgraph[0][sc.ArraySize-1] = 0; } Date Time Of Last Edit: 2018-02-27 21:35:43
|