Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 14:04:06 +0000



Post From: System Crashing because of dynamic memory in Custom study

[2020-09-22 06:53:11]
User255315 - Posts: 127
Hi SC,
I do not mean to imply that i have any issue with Sierra software or the bugs im facing are caused because of Sierra software, I just want to understand the best practices while using some of the advanced features of SC.

I use a few dynamic memory allocations for my Custom studies in SC and also use more than 4-5 charts in a particular chartbook. I noticed recently that if I'm running sims over continuous contracts for such a set-up, my system crashes after a certain number of sims. Now I went through your extensive documentation on this particular effect of custom studies and as far as i understand it the problem may be arising out of a few cases:

1. The custom study code i have written maybe inefficient to tackle the number of charts or the data referencing i am doing in the chartbook. A specific issue that i think might be the cause, is FREEING OF DYNAMIC MEMORY ALLOCATED in the custom study. When i read sierra's documentation i remember reading that sierra releases all memory before exiting etc, but I want to ask again, do i have to free memory that i allocate inside the custom study myself or will sierra do it for me? Can the issue im describing above be caused because of not clearing the memory from my side?

2. The number of charts i'm using is using up too much cpu memory, which might be probable since i have two three instances running sims at the same time with 4-5 charts in a chartbook as i said. In this case since I am using windows 10, your documentation suggests skipping the scid files from malware check. Is there anything else that might help me detect if the number of charts is causing the problem?

3. The third possibility might be the updated windows video/display drivers incompatibility with Sierra, or actual hardware issues. But i want to make sure its not any of the first two before checking that.

Any help you could give regarding this will be appreciated.