SOLVED!
ACAPI_CallUndoableCommand Access violation reading location 0x0000000000000048
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-12-12
01:42 PM
- last edited on
2022-09-29
09:47 AM
by
Daniel Kassai
2019-12-12
01:42 PM
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
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
Solved! Go to Solution.
Labels:
- Labels:
-
Add-On (C++)
1 ACCEPTED SOLUTION
Accepted Solutions
Solution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-12-13 11:39 AM
2019-12-13
11:39 AM
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
Central Innovation
1 REPLY 1
Solution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-12-13 11:39 AM
2019-12-13
11:39 AM
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
Central Innovation