2025-09-29 01:22 PM
Hello. I have a function ACAPI_MenuItem_RegisterMenu returing code -7003.
What does it mean?
There is no description for such error code in the Archicad API documentation.
Thank you in advance!
2025-09-29 02:07 PM
Hi!
Unfortunately it seems to be a very unspecific error. See API Development Kit xx.xxxx\Support\Modules\GSRoot\Definitions.hpp.
There it says:
enum ErrorType : GSErrCode {
ErrRead = -19, // == readErr on Mac /*I/O System Errors*/
ErrDskFul = -34, // == dskFulErr on Mac /*disk full*/
ErrIO = -36, // == ioErr on Mac
ErrEof = -39, // == eofErr on Mac /*End of file*/
ErrFnf = -43, // == fnfErr on Mac /*File not found*/
ErrParam = -50, // == paramErr on Mac
ErrPerm = -54, // == permErr on Mac /*permissions error (on file open)*/
ErrWrPerm = -61, // == wrPermErr on Mac /*write permissions error*/
ErrMemoryFull = -108, // == memFullErr on Mac
ErrNilHandle = -109, // == nilHandleErr on Mac
ErrUserCanceled = -128, // == userCanceledErr on Mac
ErrTime = -2015, // == invalidTime on Mac
ErrNilPtr = -7001,
ErrEmptyHandle = -7002,
Error = -7003,
Cancel = -7004,
ExceptionError = -7005
};
can you post more of the code?
Best regards,
Bernd
2025-09-29 05:31 PM
The code was:
err = ACAPI_MenuItem_RegisterMenu (32500, 0, MenuCode_UserDef, MenuFlag_SeparatorBefore);
It was used in IFCHook_Test.cpp and I was getting this error when I copied and pasted the entire example in order to solve my different issue with PropertyHook.
2025-09-30 08:23 AM
I see. I've posted a possible solution in the other thread.
Here are some ideas for this problem: