glUseProgramm() throws 1281 error, eventhough it compiles and links correctly

Thank you very much for your help - I have found the problem and it wasn’t related to openGL at all. I implemented it so that shaders get pushed into a std::vector shaderList - turns out the destructor of the shader was called when .pushback(shader) was called. All probs to this post!