I use ChoosePixelFormat while initializing a render context. I debug it using BCB 3.0 and sometimes I get Access Violation. But when I run my app without debugging it seems to work properly. Does anybody know waht’s the reason for that and how to overcome it?