Support Board
Date/Time: Sun, 24 Nov 2024 01:37:41 +0000
Post From: Kiwi Resync Study - Memory leak?
[2019-03-18 07:46:24] |
Kiwi - Posts: 375 |
Long term you should use Sierra E's version. In the mean time this (an entire file with only this function) compiles using remote compile. The source file (cpp) and the 64bit version of the dll are attached. I didn't set scFreedll so it will default to zero - now that you can free the dll with the Build function its not as important as it used to be. #include "sierrachart.h"
SCDLLName("* Test Kiwi *") /*==========================================================================*/ 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.Input[1].Name="Also reload chart data"; sc.Input[1].SetYesNo(0); sc.UpdateAlways=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; if (sc.Input[1].GetYesNo()) sc.FlagToReloadChartData = 1; } else sc.Subgraph[0][sc.ArraySize-1] = 0; } } Date Time Of Last Edit: 2019-03-18 07:48:15
|
Kiwi_test.cpp - Attached On 2019-03-18 07:43:40 UTC - Size: 1.16 KB - 542 views Private File |