Support Board
Date/Time: Mon, 10 Feb 2025 16:15:57 +0000
Post From: ASCIL: Setting SubGraphRef and the Lifetime of sc.Subgraph[] Arrays
[2020-08-19 07:43:26] |
BlakJak - Posts: 108 |
I have some code which stores an object for re-use using the GetPersistentPtr(). All that works fine and I have used it in many studies. Recently I thought of adding members to the class as references to the Subgraphs for ease of access and readability in my code. However, it seems that those references when restored with a new call to the study (via GetPersistentPtr()) are pointing somewhere else as the [Subgraph].Name changes to garbage or "" (and eventually I get exceptions when writing data using those references). What is the persistence of the Subgraph[] arrays in memory from call to call in the studies? Should I be resetting my references with each new call to the study? I am using pre-release 2154. Date Time Of Last Edit: 2020-08-19 07:44:45
|