bombomby / optick

C++ Profiler For Games
https://optick.dev
MIT License
2.95k stars 296 forks source link

OPTICK_FRAME causes Access violation executing location error while binding socket #165

Open Pikachuxxxx opened 2 years ago

Pikachuxxxx commented 2 years ago

I've used optick in the past and it still works with all my other projects, when I tried to integrate it into my engine as a static library it crashed when I use OPTICK_FRAME looks like it cannot bind the socket.

https://github.com/bombomby/optick/blob/eb392f1647b1bb7c77f6a44e28641eaa29e37253/src/optick_server.cpp#L161-L163

In my other projects I compile optick and my vulkan abstractions as a single static library and they work but my engine is a dll which uses optics as a static lib and it crashes while trying to call the winsockets bind.

============================================================

OS : Windows 10 Home Processor : Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz 2.60 GHz Vulkan API Version : 1.3.194 GPU Name : NVIDIA GeForce RTX 2060 Vendor ID : 4318 Device Type : DISCRETE GPU Driver Version : 511.316.0 OS Build : 22000.675