473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Offset lines appearing over form after delay (NVIDIA Chipset)

Hello all -

I'm creating an application that uses a datagridview control. My
development environment is an HP Laptop with a NVIDIA Geforce 4 440 Go
64M.

While using this object, a queer effect occurs where, if you just let
the application sit idle (usually within a minute), the gridlines and
border of the datagridview control will be redrawn over the form.

The exact position of the lines appears to be where the lines SHOULD be
drawn if the form was at (0,0)--it doesn't seem to be transposing the
positions relative to the form location.

The form_paint event is being raised, but I'm not sure why; if I am
using the application normally, the datagridview is constantly being
repainted and this problem doesn't appear. It only appears when the
application is sitting idly.

After these offset gridlines are on the form, they stay on the form
until a repaint is forced (by invalidating the control, or by pulling
the window off the screen's boundaries and pulling it back in.)

I can't figure out WHY this is happening.

I've checked out the event arg's graphic property's members, but
nothing seems to have changed between the original values and the
values of the graphic property when this error occurs.

I've also tried flushing the GDI cache, but that doesn't work either.

I can't tell if these are NEW lines, or lines that are somehow in an
uncleared buffer...

Any help, or even a push in the right direction, would be greatly
appreciated.

Thanks,

-M

Jun 1 '06 #1
3 1460
"Mark" <ma*********@binaryswitch.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Hello all -

I'm creating an application that uses a datagridview control. My
development environment is an HP Laptop with a NVIDIA Geforce 4 440 Go
64M.

While using this object, a queer effect occurs where, if you just let
the application sit idle (usually within a minute), the gridlines and
border of the datagridview control will be redrawn over the form.

[x]

Does the problem go away if you disable hardware acceleration?
It could be a driver problem.

James
Jun 1 '06 #2
> Does the problem go away if you disable hardware acceleration?
It could be a driver problem.


Yes, after fiddling around with the settings, I found that the problem
when away when I disabled the directdraw and direct3d accelerations.
Alternately, if I disable directdraw from dxdiag, this bug isn't
raised.

I tried update DirectX, but that didn't help. I thought that GDI/GDI+
were a completely seperate animal, so this is surprising...

I've also confirmed this isn't a problem with my code; I have placed an
empty datagridview on a new form and I'm having the same draw problem.

Clearly, asking a user to disable their directdraw accelerations isn't
a solution...

Any ideas?

-M

Jun 2 '06 #3
"Mark" <ma*********@binaryswitch.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
Does the problem go away if you disable hardware acceleration?
It could be a driver problem.
Yes, after fiddling around with the settings, I found that the problem
when away when I disabled the directdraw and direct3d accelerations.
Alternately, if I disable directdraw from dxdiag, this bug isn't
raised.

I tried update DirectX, but that didn't help. I thought that GDI/GDI+
were a completely seperate animal, so this is surprising...

I've also confirmed this isn't a problem with my code; I have placed an
empty datagridview on a new form and I'm having the same draw problem.

Clearly, asking a user to disable their directdraw accelerations isn't
a solution...


This isn't your app, it's the video card-specific driver. Most of your
users will have zero problems running your application. For the ones with
the troublesome cards, a FAQ entry pointing them to the website of their
video card manufacturer and asking them to update the driver (not DirectX)
is common practice.

Any ideas?

-M

Jun 2 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Jordan | last post by:
I'm hoping that someone here can give me some insight into a problem I'm running into with Python, pywin32 and Excel. All-in-all using Python and pywin32 is great but I've run into a strange...
5
by: Gus T. Butt | last post by:
I'm trying to repair an installation of MS Visual Studio .Net 2003, but if I try to install prerequisites (Step 1) or Visual Studio .Net (Step 2), it launches a Spanish install of the Intel Chipset...
4
by: Gactimus | last post by:
Here is a program that encodes and decodes a text file. What I need to do is write a C++ program that requests 3 different file names. One filename is for the source file to be encoded, another is...
1
by: Lucas Graf | last post by:
I am trying to get the deployment to do what I want, but I just can't. I want my folders to be setup like below.. Main Program Folder - Program EXE - Program PDB - AppStart EXE - AppStart...
0
by: Shark | last post by:
Just a post for anyone else that is having this problem (as I've now discovered the solution). The problem is where when looking in the dialog resource view of an MFC project in Visual Studio...
1
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I want to make a "GRAPHICS PROGRAM" in C language that shows sorting of lines. Something like this:- ------------ ------------------- ------ ------------------------------------ after...
1
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I want to make a "GRAPHICS PROGRAM" in C language that shows sorting of lines. Something like this:- ------------ ------------------- ------ ------------------------------------ after...
1
by: Aleksandar Djurdjevic | last post by:
Hello. I recently purchased new machine with Asus MB P5K(P35 chipset),Intel Core2Duo 2.66Ghz,Seagate harddisk etc... I have DVD-RAM burner Asus DRW-1608P2S that is connected with IDE...
1
by: hsyq8xg | last post by:
From Google, translated to English from French: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.