PDA

View Full Version : video card trouble



Morphius
04-30-2002, 07:56 AM
am having troubl with my video card under Windows98. It works good under 2000 and XP but for some reason not in 98.
The program was written in Delphi and this is what is going on:

I have a number of panels with openGL on them, controled by both the user and the program. These components are messed up and drawing on the same panel under 98. that is 5 drawings on top of eachother on 1 panel.

This does not happen on other operating systems or with other cards. Please help.

JWeaver
04-30-2002, 11:30 AM
Make sure that you are using the CS_OWNDC class style for your window.

James

Elixer
05-01-2002, 07:59 AM
YANAFP! ARgh...


With that out of the way, you do not mention what vid cards, drivers, system specs and so on, and even if you did, YANAFP!.

Deiussum
05-01-2002, 09:49 AM
At the risk of sounding ignorant, what is YANAFP? http://www.opengl.org/discussion_boards/ubb/smile.gif

Adrian
05-01-2002, 10:11 AM
I think its..
Yet Another Not Advanced Forum Post
?

Deiussum
05-01-2002, 11:09 AM
Ahh... that makes sense. It is also YACP. (Yet Another Cross Post) as this post was put in both the beginners and advanced boards. http://www.opengl.org/discussion_boards/ubb/smile.gif

Morphius
05-02-2002, 04:40 AM
JWeaver

Thanks for the info. I am using panels to draw on and not windows. Can this still work? I've been searching the web but all the examples I find are for creating windows.

To All "Slammers"
PFO. I had my reasons for cross post and posting here in particular. The biggest reason was more exposure.

JWeaver
05-02-2002, 04:57 AM
I am not familiar with Delphi. Are panels just dialogs? If so, yes you can get it to work. Windows 98 is real picky about that CS_OWNDC. Sounds like they are all sharing the same DC which is what this flag will fix. You still will want to use only 1 or 2 OpenGL contexts and share them.

Morphius
05-02-2002, 05:03 AM
A panel is a container put on a form (or window) and I think it has many of the same properties of windows so I'll give it a try thanks

Morphius
05-02-2002, 07:49 AM
This solution worked great for everything else which was pretty much working already. But when I ran it on the computer in question I got an AV. I'm looking into it, but at least I have some frame of reference and an actual error to work from

Thanks again

JWeaver
05-02-2002, 08:25 AM
I ran into a problem when I switched to this flag that I had to move my create GL context to a little later in the creation cycle so that the DC was created. Your problem may be similar.

Morphius
05-07-2002, 06:28 AM
I've got it all staightened out now. I was messing up when I was creating the handle for the component. With that fix and the CS_OWNDC it works great.

Thanks JWeaver