Bitmap *bitmap;
...
tex = bitmap->loadTexture("Practice.bmp");
I don't see you ever initializing bitmap. My guess is that it's an invalid pointer and you aren't setting it/allocating a Bitmap. Perhaps it shouldn't be a pointer and should just be a regular Bitmap instead of a Bitmap*? I see no reason to make it a pointer. I'm also unsure of why you made bitmap and tex global variables instead of member variables of Editor...
But yes, as fastcall22 said, now would be a great time to get familiar with your debugger.