-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace the includes of Windows.h with windows.h (#204) #235
Conversation
When cross-compiling with MinGW, the compiler is unable to find the include of Windows.h because windows.h is provided instead. Replacing the includes of Windows.h with windows.h solves the issue and still works on Windows because the filesystem is case insensitive.
When I run the tests on my computer, I only get a crash randomly and even on the master branch. If I activate the AddressSanitizer:
I get randomly this trace:
My analysis is the following:
The simplest solution is to add a Could you check if you are OK with this is analysis? Also, could it be possible to rerun the job to see if it is random? |
Looks like possibly the same issue as reported in #217. Your analysis sounds very plausible. In fact, I wrote this note when I was writing this class... I overlooked the fact that I believe that using a container that doesn't work by continually moving its contents in memory, e.g. a linked list or I will look into fixing this when I have time, but hopefully it shouldn't take long as no algorithmic changes have to be made. |
Thanks for your change. I've found a solution to the memory access issues by replacing |
When cross-compiling with MinGW, the compiler is unable to find the include of Windows.h because windows.h is provided instead. Replacing the includes of Windows.h with windows.h solves the issue and still works on Windows because the filesystem is case insensitive.
This is what is already done in include/external/mio.hpp.