SFML community forums

Help => Window => Topic started by: UchihaKite on August 27, 2018, 11:09:21 pm

Title: [Q] "glcontext.cpp not found" when closing window
Post by: UchihaKite on August 27, 2018, 11:09:21 pm
Hey guys!

So, I tried doing some digging on my own, but unless I missed something, I don't think this issue has been posted before. I apologize if I did miss something, but after trying to figure this out for a few hours, I figured it was time to reach out for help :P

It might sound odd, but when I try to close my projects window (be it by clicking the "x" or pressing "ESC"), I get a crash or something. I've attached an image of what pops up. I've set up my SFML project as I always have, using the same version of SFML. I've never had this issue before.

Thanks for all the help!

Edit:
- Confirmed that I am using the correct Libraries
- Disabled my Anti Virus didn't help
- Tried upgrading the project to 2.5.1 and now Visual Studio's is asking me to "Find Source: glcontext.cpp"
- My project is linked statically
Title: Re: [Q] "glcontext.cpp not found" when closing window
Post by: Hapax on August 29, 2018, 03:52:13 pm
Some code would help, preferably a complete and minimal example.

The memory address is zero though so it's clear that this is a null pointer. This is the destruction of the texture causing this; how and where this happens is important.

Are any of your SFML objects in global scale by any chance?