2022-07-26 02:24 PM - edited 2022-07-26 04:00 PM
Call the APIEnv_Get3DImageSetsID crashed Archicad ( exception thrown in debugger).
It seems APIEnv_Change3DImageSetsID too.
Both in our Addon and the Environment_Control example.
Is there an API bug ?
Update:
The Environment_Control example works for Release build.
But crashes for Debug build.
2022-07-26 04:30 PM
Hi Oleg,
These types of crashes usually happen because of uninitialized variables. In some cases, in debug build the uninitialized memory gets set to NULL, while on Release it contains memory garbage. Are filterAndCutSettings and mustConvert both initialized?
2022-07-26 08:36 PM
Graphisoft's Environment_Control example. Do_SetFilterAndCutSettings () function.
Using Cmake create a VS solution.
Release build works, Debug build crashes.
Is it works for you ?
PS: Just guess. I think, one of possible reason is different debug memory handling of std::map. For caller (addon) and APIEnv_Get3DImageSetsID API implementation.