cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

ACAPI_CallUndoableCommand Access violation reading location 0x0000000000000048

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 Solution

Accepted Solutions
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
Central Innovation

Go to post

1 Reply 1
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
Central Innovation

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!