whenever I try to run applications from within an IDE like IDLE or PyScripter then the program runs correctly but when I exit it, it gives me an error of unreferenced memory location read and crashes.
Mike C. Fletcher
Logged In: YES
Many IDEs are written in such a way that you cannot cleanly run another GUI program from within them. That is due to conflicting GUI library mainloops. My guess would be that you are seeing that effect where the "inner" event loop is terminating and trying to take everything with it (doing cleanup that interferes with the parent mainloop). Not normally a PyOpenGL-specific problem, rather a problem in GUI library designs.
I'm closing the ticket for now, if you feel that's in error, please open a new ticket with your script and why you feel this isn't a normal GUI interaction error and I'll look into it further.