Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

ACAPI_CallUndoableCommand Access violation reading location 0x0000000000000048

DevJeer
Newcomer
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

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

View solution in original post

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!