Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 21:11:56 +0000



Post From: Example with new/delete that crashes SC every time

[2016-09-24 01:39:58]
Sierra Chart Engineering - Posts: 104368
We did not encounter any problems. This is what we saw in the debugger output:


Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Created new p_ClassA=02C09240 | 2016-09-23 21:36:09
Message Log: CLU16 [M] 1 Min #1 | Reloading chart. | 2016-09-23 21:36:09


Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Deleting p_ClassA=02C09240 | 2016-09-23 21:36:10
Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Created new p_ClassA=02C09240 | 2016-09-23 21:36:10
The thread 0x4ae0 has exited with code 0 (0x0).
Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Deleting p_ClassA=02C09240 | 2016-09-23 21:36:30
Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Created new p_ClassA=02C09240 | 2016-09-23 21:36:30


Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Deleting p_ClassA=02C09240 | 2016-09-23 21:36:48
Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Created new p_ClassA=02C09240 | 2016-09-23 21:36:48
Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Deleting p_ClassA=02C09240 | 2016-09-23 21:36:54
Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Created new p_ClassA=02C09240 | 2016-09-23 21:36:54


Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Deleting p_ClassA=02C09240 | 2016-09-23 21:37:00
Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Created new p_ClassA=02C09240 | 2016-09-23 21:37:00


Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Entered LastCallToFunction | 2016-09-23 21:37:03 *
Message Log: Chart: CLU16 [M] 1 Min #1 | Study: Dynamic Memory Allocation exception test | Deleting p_ClassA=02C09240 | 2016-09-23 21:37:03

It would be very unlikely there is a problem with in Sierra Chart. The problem is most likely in your own code.

Since your function is calling new and delete you should be able to tell exactly what the source the problem is within your study function without having to rely upon us.


It would be very unlikely there is any problem with getting and setting a persistent pointer and if there is, you should be able to tell us exactly what the problem is.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing