Skip to content

Move last P/Invoke error from native Thread and delete C/C++ SafeHandle implementation - #100267

Merged
jkotas merged 8 commits into
dotnet:mainfrom
jkotas:lasterror
Mar 27, 2024
Merged

jkotas merged 8 commits into
dotnet:mainfrom
jkotas:lasterror

Conversation

@jkotas

@jkotas jkotas commented Mar 26, 2024

Copy link
Copy Markdown
Member

No description provided.

@ghost ghost added the area-Interop-coreclr label Mar 26, 2024
if (transitionToPreemptive)
{
GCPreemp transitionIfILStub(transitionToPreemptive);
DWORD* pLastError = &GetThread()->m_dwLastErrorInterp;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The interpreter support for last error is broken (it was not updated for source generated stubs) and this change breaks it even more. I am deleting it instead of trying to do some sort of quick fix.

Comment thread src/coreclr/vm/marshalnative.cpp Resolved
Comment thread src/coreclr/vm/interpreter.cpp Resolved
@jkotas
jkotas merged commit 3f7ffdd into dotnet:main Mar 27, 2024
@jkotas
jkotas deleted the lasterror branch March 27, 2024 13:43
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants