Are you sure that you did a complete rebuild for your project? I use both SDL GL and dglOpenGL and sometimes I forget to do a complete rebuild when switching between these two and get some nasty crashes.