News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Registry checks?

Started by rickg22, July 11, 2005, 06:08:33 PM

Previous topic - Next topic

rickg22

I'm posting this because of the "sidebar gone" bug and also the TODO which hasn't been fixed yet - and I don't know how to fix it either :oops:

Anyway, It seems that we don't have restrain checks for registry-stored variables. For example, the "sidebar gone" screwed up when (accidentally?) the value for a certain config dropped below zero. Shouldn't we do a check for min and max values of certain variables before loading them?

This reminds me of my PHP programming times: *NEVER* trust user input. And well, in this case it should be: "Don't trust the registry, it breaks too often :lol: ".

So, what do you think?

David Perfors

min values should always be checked... indeed never trust ANY input :P
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring