4,840,077 members and growing! (7,736 online)
Email Password   helpLost your password?
Announcements




BullFrog Power
Search    
Advanced Search
Sitemap

Subtle Bugs


RSS Feed RSS feed

Ever spent a week trying to find that elusive bug only to realise it was staring you in the face the whole time?

Subtle Bugs is a forum to post examples of interesting, aggravating and subtle bugs that you've found and fixed. Do not post programming questions in this forum. This forum is purely for amusement and discussions and all actual programming questions will be removed.

You must Sign In to use this message board.
 FAQ Noise Tolerance Search comments 
 Layout  Per page  Date Filter
 Msgs 16 to 40 of 1,652 (Total in Forum: 1,652) (Refresh)FirstPrevNext
Subject  Author Date 
Re: Errors on the 31st daydarkelv14:10 31 Jan '08  
No mistakes, in fact. CPallini22:32 31 Jan '08  
Re: No mistakes, in fact.Luc Pattyn0:04 1 Feb '08  
Re: No mistakes, in fact. CPallini0:11 1 Feb '08  
Re: Errors on the 31st dayXiangyang Liu10:38 1 Feb '08  
Re: Errors on the 31st dayPaul Conrad9:14 10 Feb '08  
Downloading a file - and why it sometimes doesn't workdabs0:04 26 Jan '08  
Re: Downloading a file - and why it sometimes doesn't workPaul Conrad8:01 27 Jan '08  
Re: Downloading a file - and why it sometimes doesn't workChris Meech11:04 28 Jan '08  
Re: Downloading a file - and why it sometimes doesn't workdabs11:29 28 Jan '08  
Re: Downloading a file - and why it sometimes doesn't workpeterchen2:39 8 Feb '08  
Re: Downloading a file - and why it sometimes doesn't workLee Hesselden4:24 12 Feb '08  
If it were not an operatorRage7:47 10 Jan '08  
C++ code (simplified), VS2005:

if (!DescribeFG(PARAM_1, &vVal;, iIndex ), iType)
{
DisplayError();
}


With following prototype

bool DescribeFG(int a, int *value, int index, int type=0);


I do not know how the if line was understood by the compiler, but no error, no warning.
Maybe the , operator ?

Actually, I searched quite a while why my type was always 0 (original code is not that trivial)

~RaGE();

I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus

Do not feed the troll ! - Common proverb




Sign In·View Thread·PermaLink4.29/5 (3 votes)
Re: If it were not an operatorLuc Pattyn8:03 10 Jan '08  
Re: If it were not an operatorJörgen Sigvardsson8:44 10 Jan '08  
Re: If it were not an operatorTJoe3:23 11 Jan '08  
Re: If it were not an operator CPallini3:28 11 Jan '08  
Lazy initialization of a singletonZoltan Balazs12:45 6 Jan '08  
Re: Lazy initialization of a singletonPIEBALDconsult15:37 6 Jan '08  
Re: Lazy initialization of a singletonZoltan Balazs20:22 6 Jan '08  
Re: Lazy initialization of a singletonPIEBALDconsult5:36 7 Jan '08  
Re: Lazy initialization of a singletonZoltan Balazs8:29 7 Jan '08  
Re: Lazy initialization of a singletondan neely9:11 7 Jan '08  
Re: Lazy initialization of a singletonPIEBALDconsult15:03 7 Jan '08  
Re: Lazy initialization of a singletonOR0N21:47 6 Jan '08  

General    News    Question    Answer    Joke    Admin   


Last Updated 16 Feb 2008
Web10 | Advertise | Privacy
Copyright © CodeProject, 1999-2008
All Rights Reserved. Terms of Use