When I try to delete a framebuffer because it is no longer used the application crashes.
The FB is complete and has been used successfully.
There are no OpenGL errors.
It has one color attachment as RGBA.
DEPTH-only attachments (as for shadow maps) don't crash
It crashes saying: "unhandled exception in 0x0000000 viewer.exe: 0xC000005.
How can I debug this error? Any ideas=



What a stupid mistake!