Hi All,
When I make an API all and my program just exists
without an error or any complaint, is there some
log somewhere that will tell me what went wrong?
Many thanks,
-T
On Tue, 29 Nov 2022 02:16:43 -0800, T wrote:
Hi All,
When I make an API all and my program just exists
without an error or any complaint, is there some
log somewhere that will tell me what went wrong?
Many thanks,
-T
Did you check `GetLastError()`?
Also, some APIs have their own error handling and reporting outside of the standard Win32 API. So check the API documentation.
I traced it down to Raku's NativeCall. It
happens when you forget to declare a variable
that is [out] and/or [in/out] as "is rw".
Or use a variable the is a mystery to
NativeCall.
I have written a pm6 for error reporting from
the API calls. There is nothing there.
Makes it pretty difficult to troubleshoot.
On Tue, 29 Nov 2022 18:23:18 -0800, T wrote:
I traced it down to Raku's NativeCall. It
happens when you forget to declare a variable
that is [out] and/or [in/out] as "is rw".
Or use a variable the is a mystery to
NativeCall.
I have written a pm6 for error reporting from
the API calls. There is nothing there.
Makes it pretty difficult to troubleshoot.
Doesn't Raku have its own reporting to tell whether the result of that "NativeCall" itself has succeeded or not? Such as failure due to mismatched number of arguments supplied to the API; or if the API is called by DLL/function name, an error for DLL file is not found or function name is
not found.
I does, but it is also not very mature. Consider
it alpha code. It misses things still.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:06:06 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,792 |