Closed tail-feather closed 1 year ago
which compiler you use? I am using it for years with gcc and I have not seen any issues whatsoever. if you use msvc we may need to add condition to use closesocket() when msvc is used or test this extensively with gcc.
On Fri, Sep 1, 2023, 7:48 PM tail-feather @.***> wrote:
You can view, comment on, or merge this pull request online at:
https://github.com/indigo-astronomy/indigo/pull/495 Commit Summary
- 904d00c https://github.com/indigo-astronomy/indigo/pull/495/commits/904d00c9586065280f10a3bf38f5682f739e0fee fix crash issue on windows
File Changes
(1 file https://github.com/indigo-astronomy/indigo/pull/495/files)
- M indigo_libs/indigo_client.c https://github.com/indigo-astronomy/indigo/pull/495/files#diff-6db1dec3e9ab264e19d071b1ec130281f9d229f410eb93d7e9537bb105c35f31 (4)
Patch Links:
- https://github.com/indigo-astronomy/indigo/pull/495.patch
- https://github.com/indigo-astronomy/indigo/pull/495.diff
— Reply to this email directly, view it on GitHub https://github.com/indigo-astronomy/indigo/pull/495, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5EZBMBBOBZH6JPIEUMYMLXYIGVFANCNFSM6AAAAAA4H2CH2Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Seems to be fine with gcc too... but please tell me which compiler are you using?
Oh... It's odd...
I use MSVC 2019 compiler.
And crash occurs if specify invaild ip address.
Maybe it has to be x64. https://stackoverflow.com/a/76847472
Crash occurs on x64 dll.
On windows,
close(server->socket)
should beclosesocket(server->socket)
.same as: https://github.com/indigo-astronomy/indigo/blob/a86c08f1d46d46806a2690dc5710cac4563d7afc/indigo_libs/indigo_client.c#L417-L421