Support Board
Date/Time: Tue, 04 Feb 2025 09:46:06 +0000
Post From: Studies not loaded/reloaded in v2034
[2020-01-13 21:17:04] |
@sstfrederik - Posts: 405 |
SC I investigated this and it seems the in the pre-release v2034 a persistent variable is set back to zero after a study reload. I know .... I couldn't believe it myself either. This is very bad in many ways. I know you likely deny it, but it is still happening. Utterly simple code below. Please fix this ASAP. I always tell my users not to use pre-release maybe you should too (at least for this one). Thanks, Frederik SCSFExport scsf_TestStudy(SCStudyInterfaceRef sc)
{ if (sc.SetDefaults) { sc.GraphName = "Test Name"; sc.FreeDLL = 0; sc.AutoLoop = 1; return; } // Data processing code int& ArrayIndex = sc.GetPersistentInt(1); // SCString aap; if(sc.Index == 0){ aap.Format("ArrayIndex = %d",ArrayIndex); sc.AddMessageToLog(aap,1); } // ArrayIndex = 10; } |