# COM CoInitialize Warning on glfwInit call

**URL:** <https://discourse.glfw.org/t/com-coinitialize-warning-on-glfwinit-call/1541>\
**Category:** support\
**Created:** [April 18, 2020, 9:34pm UTC](https://discourse.glfw.org/t/com-coinitialize-warning-on-glfwinit-call/1541 "2020-04-18T21:34:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [April 19, 2020, 11:52am UTC](https://discourse.glfw.org/t/com-coinitialize-warning-on-glfwinit-call/1541/2 "2020-04-19T11:52:00Z")

</div>

Do you get the same warnings on any of the tests or example projects in GLFW, or in this starter project: [GitHub - juliettef/GLFW-CMake-starter: Use CMake to create a project with GLFW - Multi-platform Windows, Linux and MacOS.](https://github.com/juliettef/GLFW-CMake-starter) ?

I heard someone had a similar issue which I was unable to replicate:

> [@"CoInitialize has not been called" message on XInputGetCapabilities call](https://discourse.glfw.org/t/coinitialize-has-not-been-called-message-on-xinputgetcapabilities-call/1363):
>
> Hello, I’ve recently noticed this string in my project’s output: onecore\com\combase\objact\objact.cxx(834)\combase.dll!00007FF824B17213: (caller: 00007FF824B164D6) ReturnHr(1) tid(1bd8) 800401F0 CoInitialize has not been called. After some quick debugging, I’ve tracked down the line causing said string to be printed: if (XInputGetCapabilities(index, 0, &xic) != ERROR\_SUCCESS) continue; line 553 in win32\_joystick.c from glfw3.3 Here’s the callstack: | |Engine.dll!\_glfwDetectJoystickConne…

If you can replicate the issue with any of the tests/examples etc. then it might be an issue with GLFW on your particular configuration, so knowing the exact OS details would be useful (Windows version).

---

_[View the full topic](https://discourse.glfw.org/t/com-coinitialize-warning-on-glfwinit-call/1541)._
