SOLVED!
ACAPI_CallUndoableCommand()
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-03
12:30 PM
- last edited on
2021-09-15
11:47 AM
by
Noemi Balogh
2020-07-03
12:30 PM
Hi there!
In my code, ACAPI_CallUndoableCommand(undoBuffer,
[&]() -> GSErrCode {
*************************
return GS::GSErrCodes::NoError;
});
function returns always with " -2130312312 " error code, where undoBuffer is "char[256]" set by ACAPI_Resource_GetLocStr() function.
Have you got an idea what can cause that type of error?
I couldn't get closer by checking API documentation of ACAPI_CallUndoableCommand.
In my code, ACAPI_CallUndoableCommand(undoBuffer,
[&]() -> GSErrCode {
*************************
return GS::GSErrCodes::NoError;
});
function returns always with " -2130312312 " error code, where undoBuffer is "char[256]" set by ACAPI_Resource_GetLocStr() function.
Have you got an idea what can cause that type of error?
I couldn't get closer by checking API documentation of ACAPI_CallUndoableCommand.
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
2020-07-03 02:06 PM
2020-07-03
02:06 PM
In what context are you making the call, e.g. in response to a menu callback?
Ralph Wessel BArch
Central Innovation
Central Innovation
2 REPLIES 2
Solution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-03 02:06 PM
2020-07-03
02:06 PM
In what context are you making the call, e.g. in response to a menu callback?
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-07-03 02:23 PM
2020-07-03
02:23 PM
Hi!
I reallised that my function call going through on a ACAPI_CallUndoableCommand() before the second call. I belive that the second call is unnecessary and it cause the error. You highlighted the point, thanks for that.
Have a good day!
I reallised that my function call going through on a ACAPI_CallUndoableCommand() before the second call. I belive that the second call is unnecessary and it cause the error. You highlighted the point, thanks for that.
Have a good day!