Skip to content

exception when build with NativeAOT #40

@DragonXYZ

Description

@DragonXYZ

when build with NativeAOT asyncIO iwll throw error
Unhandled exception. System.NotSupportedException: 'AsyncIO.Windows.AcceptExDelegate' is missing delegate marshalling data. This can happen for code that is not compatible with AOT. Inspect and fix AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetForwardDelegateCreationStub(RuntimeTypeHandle) + 0x6d at System.Runtime.InteropServices.PInvokeMarshal.GetDelegateForFunctionPointer(IntPtr, RuntimeTypeHandle) + 0x71 at AsyncIO.Windows.Socket.LoadDynamicMethod[T](Guid) + 0x8c at AsyncIO.Windows.Socket.Listener..ctor(Socket) + 0x44 at

Unhandled exception. System.Net.Sockets.SocketException (0x80004005): at AsyncIO.Windows.Socket.Listener.AcceptInternal(AsyncSocket) + 0x149

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions