Support Board
Date/Time: Fri, 10 Jan 2025 21:14:01 +0000
Post From: Example with new/delete that crashes SC every time
[2016-09-23 22:15:29] |
DabbaDo - Posts: 148 |
Attached is file PersistentPointerCrash.cpp. To crash every time: Add this study to a chart. Add a Volume by Price study. (I haven't found another study that will crash.) Apply it but DO NOT press OK. Edit the VbP study Subgraphs tab by changing a color, e.g. Value Area and Outline. Apply it. I get a memory error. (In debug mode I get "Debug Assertion failed in minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp Line 892"). Debugging through this, SC seems to give me an out-of-date pointer when I call GetPersistentPointer(), but ONLY in this special sequence of commands and ONLY with VbP. But in this case, it crashes EVERY time. I could make a screencast and send you a link if necessary. Or if I need to do more work to document this maybe-bug to you in a simpler fashion, please let me know. This is version 1463 running on Windows 10. Thanks, Dale |
PersistentPointerCrash.cpp - Attached On 2016-09-23 22:00:45 UTC - Size: 2.02 KB - 321 views Attachment Deleted. |