Support Board
Date/Time: Mon, 21 Apr 2025 13:32:38 +0000
Post From: Problem with sc.GetOrderFillEntry / s_SCOrderFillData in versions 2742+
[2025-03-05 22:24:28] |
TB7000 - Posts: 14 |
Hi, I've also updated to the most recent version (from 2718 to 2744) and SC crashes immediately as soon as an order is placed. The crash is caused by two custom build studies, which are triggered by the order execution. They both use sc.GetOrderFillEntry just like the user above. if (positionData.PositionQuantity != 0 && currentTrade.isNewTrade(positionData.PositionQuantity)) { s_SCOrderFillData fillData; if (sc.GetOrderFillEntry(sc.GetOrderFillArraySize() - 1, fillData)) { ... Run-Time Check Failure #2 - Stack around the variable 'fillData' was corrupted.
Additional Information: - All testing has been done with the concerned studies in isolation and on blank chart book. - Rolling back to 2718 solves the issue. - Did not test other versions in between. I’d appreciate your support and attention to this matter. Looking forward to your response. Update: - Tested different versions in between, issue starts with version 2742 and higher (not crashing with 2741), just like the user above has mentioned. 2741 is not a temporary solution neither, as other third party provider of custom studies have adapted to 2742 and these products do no longer run below that version. Date Time Of Last Edit: 2025-03-05 22:54:09
|