Support Board
Date/Time: Wed, 05 Mar 2025 04:16:49 +0000
Post From: create a custom C++ class that manages trade/logic
[2022-01-09 10:51:03] |
User431178 - Posts: 604 |
sc.SetPersistentPointer(some_struct_pkey, new some_struct(sc));
This line can be moved to the sc.SetDefaults block, without null check, to ensure that the structure is always initialized at startup. I'm not going to wade into the rest of this thread, but this is bad advice, as it will leak memory. SetDefaults block also runs when opening the add custom study window, meaning that you will create objects and never destroy them. Date Time Of Last Edit: 2022-01-09 10:51:25
|