lfreist / hwinfo

cross platform C++ library for hardware information (CPU, RAM, GPU, ...)
MIT License
438 stars 76 forks source link

Thanks) Also you have the same issue in Win32 Motherboard class. #39

Open lfreist opened 1 year ago

lfreist commented 1 year ago
          Thanks) Also you have the same issue in Win32 Motherboard class. 

And another bug I've found that when on Windows multiple times use CoInitialize and CoUninitialize, it crashes or not retriving the next info at all (first info fine), so l've try to initialize it once and when all information I need I get then uninitialize it. Maybe it problem with my project because somewhere I already call this.

For test I create init.h and init.cpp files with init(), close() functions, then move initialization/uninitialization code there, and between them retrieve relevant information.

Originally posted by @KennyProgrammer in https://github.com/lfreist/hwinfo/issues/38#issuecomment-1539090797

lfreist commented 1 year ago

@KennyProgrammer could you provide a minimal example for this issue? Thanks!