Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 04:58:12 +0000



Post From: Custom Study crashes only if loaded on startup

[2015-11-06 22:06:32]
jwick - Posts: 142
hehehe :) As always, you are correct! Thanks for the tips. In hindsight, the source of the crash makes sense actually! I doubt it'll help anyone else but I'll mention it nonetheless. I was thinking ooo CPU excpetion ... I'm doing something wrong with persistent pointers. Keep re-reading my code without any progress. After debugging it, a silly silly oversight was the cause of the mistake - an uninitialized member (integer) in one of my very minor minor classes (I was using the variable to index into an array)! SO, when I load the study onto a fresh chart, that variable happens to always be initialized to 0 by the runtime. BUT, when the study is already set up in a chartbook, and I load that chartbook, that variable gets initialized to a random value! tsk tsk ... always explicitly initialize variables :P

Yay!
Date Time Of Last Edit: 2015-11-06 22:07:19