Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

ACAPI_CallUndoableCommand Access violation reading location 0x0000000000000048

Anonymous
Not applicable
Hi.
I call ACAPI_Property_CreatePropertyDefinition api, and the return code is NoError.
But I don't why the access violation occurs.

I call ACAPI_Property_CreatePropertyDefinition in the callback of APINotify_Open event.

Archicad version 22.
VS 2015
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Ralph Wessel
Mentor
I'm pretty sure you can't process undoable actions during the callback for a project event notification. The right approach would be to ask ARCHICAD to notify you when it's appropriate to action this process – I suggest that you take a look at ACAPI_Command_CallFromEventLoop
Ralph Wessel BArch

View solution in original post

1 REPLY 1
Solution
Ralph Wessel
Mentor
I'm pretty sure you can't process undoable actions during the callback for a project event notification. The right approach would be to ask ARCHICAD to notify you when it's appropriate to action this process – I suggest that you take a look at ACAPI_Command_CallFromEventLoop
Ralph Wessel BArch

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!