Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 21:36:33 +0000



Post From: GetACSDrawingByLineNumber / GetUserDrawnDrawingByLineNumber

[2023-11-01 12:28:54]
User907968 - Posts: 823
Since updating to version 2561, I am seeing problems when the following functions are called from studies built prior to version 2545.

sc.GetACSDrawingByLineNumber
sc.GetUserDrawnDrawingByLineNumber

More often than not, the program crashes immediately when using studies that call these functions.

Debugging in VS suggests that the stack is getting corrupted.

To test a very basic example, the attached code was built for version 2484.
Everything works as expected in 2484, but running the same study in 2561 causes the program to crash.

Observation:
After calling sc.GetUserDrawnDrawingByLineNumber in version 2561 -
1) The size member of s_UseTool changes from 952 to 992; and
2) The version member changes from 2484 to 2561

Neither of the above happens in 2484, even when running studies built on much older versions.
attachmentDrawingTest.cpp - Attached On 2023-11-01 11:50:01 UTC - Size: 2.31 KB - 255 views