License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
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
Software Engineer Speckle Systems

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
Software Engineer Speckle Systems

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!