Click here to Skip to main content
15,918,808 members

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch. If you wish to report a bug privately, especially those related to security, please email webmaster@codeproject.com

 
GeneralRe: e-mail checkbox oddness [modified to add urgent plea] Pin
Sandeep Mewara24-Aug-10 10:23
mveSandeep Mewara24-Aug-10 10:23 
GeneralRe: e-mail checkbox oddness [modified to add urgent plea] Pin
Pete O'Hanlon24-Aug-10 10:46
mvePete O'Hanlon24-Aug-10 10:46 
GeneralRe: e-mail checkbox oddness [modified to add urgent plea] Pin
_Damian S_24-Aug-10 15:47
professional_Damian S_24-Aug-10 15:47 
GeneralRe: e-mail checkbox oddness [modified to add urgent plea] Pin
Chris Maunder24-Aug-10 15:54
cofounderChris Maunder24-Aug-10 15:54 
GeneralRe: e-mail checkbox oddness [modified to add urgent plea] Pin
Luc Pattyn24-Aug-10 17:17
sitebuilderLuc Pattyn24-Aug-10 17:17 
GeneralRe: e-mail checkbox oddness [modified to add urgent plea] Pin
_Damian S_24-Aug-10 19:15
professional_Damian S_24-Aug-10 19:15 
GeneralRe: e-mail checkbox oddness [modified to add urgent plea] Pin
_Damian S_24-Aug-10 19:15
professional_Damian S_24-Aug-10 19:15 
GeneralRe: e-mail checkbox oddness [modified to add urgent plea] Pin
Chris Maunder24-Aug-10 17:30
cofounderChris Maunder24-Aug-10 17:30 
That goes down as the most many-tentacled bug I've fought with in a long time.

A brief history:

I made a change to the way I was retrieving records for members' preferences. This change resulted in 2 recordsets each with 1 record instead of 1 recordset with 2 records being returned. It was done as an optimisation.

This caused a bit of weirdness in the code that was meant to sort and combine the data from the two records (1 could be from when you were logged in, 1 could be from when you weren't logged in on another machine). Guess who forgot to check whether the two rows were, in fact, the same. D'Oh! | :doh: This scenario simply wasn't possible with 1 recordset, 2 rows.

However, this unearthed a head-slapper of a bug whereby when a settings value was being changed I was setting a dirty bit using
C#
_dirty = (_currentValue != value);
_currentValue = value

This is all well and good unless you plan to test all your properties. Then you need to do
C#
_dirty = dirty || (_currentValue != value);
_currentValue = value


The irony being that the original optimisation turns out to no longer be needed after a little more work in the table indices. (Though I am seeing an option for more improvement that, I think, will bring me back 180 degrees yet again...)
cheers,
Chris Maunder

The Code Project | Co-founder
Microsoft C++ MVP

GeneralRe: e-mail checkbox oddness [modified to add urgent plea] Pin
Luc Pattyn24-Aug-10 17:37
sitebuilderLuc Pattyn24-Aug-10 17:37 
GeneralSocial Network APIs sections Pin
Uros Calakovic24-Aug-10 6:01
Uros Calakovic24-Aug-10 6:01 
GeneralRe: Social Network APIs sections Pin
Sean Ewington24-Aug-10 11:30
staffSean Ewington24-Aug-10 11:30 
GeneralIs the Code Project only for the intermediate or advanced level developers? Pin
Md. Marufuzzaman24-Aug-10 5:53
professionalMd. Marufuzzaman24-Aug-10 5:53 
GeneralRe: Is the Code Project only for the intermediate or advanced level developers? Pin
AspDotNetDev24-Aug-10 9:05
protectorAspDotNetDev24-Aug-10 9:05 
GeneralRe: Is the Code Project only for the intermediate or advanced level developers? Pin
Md. Marufuzzaman24-Aug-10 19:05
professionalMd. Marufuzzaman24-Aug-10 19:05 
GeneralRe: Is the Code Project only for the intermediate or advanced level developers? Pin
Pete O'Hanlon24-Aug-10 9:19
mvePete O'Hanlon24-Aug-10 9:19 
GeneralRe: Is the Code Project only for the intermediate or advanced level developers? Pin
Md. Marufuzzaman24-Aug-10 19:02
professionalMd. Marufuzzaman24-Aug-10 19:02 
GeneralRe: Is the Code Project only for the intermediate or advanced level developers? Pin
Pete O'Hanlon25-Aug-10 1:52
mvePete O'Hanlon25-Aug-10 1:52 
GeneralRe: Is the Code Project only for the intermediate or advanced level developers? Pin
Chris Maunder24-Aug-10 9:44
cofounderChris Maunder24-Aug-10 9:44 
GeneralRe: Is the Code Project only for the intermediate or advanced level developers? Pin
Md. Marufuzzaman24-Aug-10 18:30
professionalMd. Marufuzzaman24-Aug-10 18:30 
GeneralRe: Is the Code Project only for the intermediate or advanced level developers? Pin
Christian Graus24-Aug-10 9:53
protectorChristian Graus24-Aug-10 9:53 
GeneralRe: Is the Code Project only for the intermediate or advanced level developers? Pin
Md. Marufuzzaman24-Aug-10 18:50
professionalMd. Marufuzzaman24-Aug-10 18:50 
GeneralHow about: General European Topics Pin
Moak24-Aug-10 5:24
Moak24-Aug-10 5:24 
GeneralRe: How about: General European Topics Pin
Smithers-Jones24-Aug-10 5:35
Smithers-Jones24-Aug-10 5:35 
GeneralRe: How about: General European Topics Pin
Moak24-Aug-10 5:50
Moak24-Aug-10 5:50 
GeneralRe: How about: General European Topics Pin
Luc Pattyn24-Aug-10 5:36
sitebuilderLuc Pattyn24-Aug-10 5:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.