Access OSCall>>getLastError after an async call

23 views
Skip to first unread message

Neil Morrison

unread,
Mar 26, 2026, 10:10:46 PM (8 days ago) Mar 26
to VAST Community Forum
We are trying to improve some error handling after calling into a Windows OS API.
As per usual gives you a 0/1 for success/failure and then you use the getLastError to find out what happend.

This mechanism works fine for inline calls but never gives a value when using asyncCalls. Can understand this - different threads etc maybe!

I've been trying to discover if there is a way to determine this value from an asyncCall?

Thanks

Neil Morrison
Principal Developer
Royal New Zealand Police

Henry Johansen

unread,
Mar 27, 2026, 8:42:18 AM (8 days ago) Mar 27
to va-sma...@googlegroups.com

If you load OpenSSL, and look at senders of lockThreadIn: ,
I think the OpenSSL dispatcher does the same thing you want, using lockThreadIn: to ensure the SciSslFunctions::SSL_get_error function is called using the same thread as the initial async call.

Cheers,

Henry Johansen

VAST Consultant

Senior Software Engineer




 hjoh...@instantiations.com
 instantiations.com



Twitter LinkedIn VAST Community Forum GitHub YouTube pub.dev


--
You received this message because you are subscribed to the Google Groups "VAST Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to va-smalltalk...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/va-smalltalk/efd08c0e-95a6-4a7a-b1a7-d9234cead399n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages