Problem with Graphics preferences

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
dwkrueger
Posts: 47
Joined: Tue Jun 26, 2007 1:43 pm
Location: Indiana

Problem with Graphics preferences

Post by dwkrueger » Thu Oct 25, 2007 2:25 pm

I had a problem with the graphics prefrences. This is on Version 5.1 but the priniciple applies to other versions as well. The problem was that It retrieved the preferences from the database. But the Hardware acceleration for this one particular computer crashed the program. The only way I could resolve it was by going into the database directly and altering the the ComputerPref value that held the value for using simple graphics.

Beacuse this was a database value. Installing and uninstalling would not fix the problem. I really think that hardware issues should be stored in a local configuration file to prevent this problem from becoming unsolvable for your regular users.

Dan

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Post by jordansparks » Thu Oct 25, 2007 4:06 pm

We have run across this problem a time or two. It's fixable by doing just what you did. Note: your hardware driver is the one that crashed the computer. So our reasoning is that it's rare, it's not our fault, and it's solvable. We've looked at many different solutions. If it was stored in a local config file, it would still crash, and most users would still have to call us.
Jordan Sparks, DMD
http://www.opendental.com

User avatar
dwkrueger
Posts: 47
Joined: Tue Jun 26, 2007 1:43 pm
Location: Indiana

I agree

Post by dwkrueger » Thu Oct 25, 2007 7:08 pm

I agree. But then you could check if program terminated normally and handle known issues.

Dan

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Post by jordansparks » Thu Oct 25, 2007 7:57 pm

We could? How would we check if program terminated normally? It crashes hard.
Jordan Sparks, DMD
http://www.opendental.com

User avatar
drtech
Posts: 1649
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO
Contact:

Post by drtech » Fri Oct 26, 2007 8:54 pm

I have had the same problem on a couple of my computers
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com

User avatar
dwkrueger
Posts: 47
Joined: Tue Jun 26, 2007 1:43 pm
Location: Indiana

re- program termination

Post by dwkrueger » Mon Oct 29, 2007 7:21 am

Write a value to a file (like an ini, or xml, or config) say:
"ProgramRunning:Value"
just before the orginal call for the application (in main()) or in the original form constructor. Then in the form destructor (or in main()) write the value again signifying that the program terminated normally.

Dan

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Post by jordansparks » Mon Oct 29, 2007 7:58 am

Thanks.
Jordan Sparks, DMD
http://www.opendental.com

mowgli
Posts: 134
Joined: Fri Sep 14, 2007 1:42 pm

Post by mowgli » Wed Nov 07, 2007 7:11 am

IMHO, anyone who wants to support Open Dental (or self-support) should be prepared to go directly into the database at any time, for any reason. There are various graphical SQL database utilities besides Open Dental itself, as well as the MySQL command line utility.

Post Reply