Re: How to test whether strstr() returns a null pointer or not?
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Sun, 05 Jun 2005 03:05:58 GMT
"Malcolm" <regniztar@xxxxxxxxxxxxxx> writes:
> "Keith Thompson" <kst-u@xxxxxxx> wrote
>>> A window popped up asking for permission to report the problem to
>>> Microsoft. That's how I knew something was wrong. Anyway, since
>>> the program is working now, I'll just leave the mistery behind and
>>> forget about it.
>>
>> It's very likely that the error was a symptom of a deeper problem
>> that's going to bite you again later on. The change you made should
>> not have made any difference. It's up to you whether you want to
>> spend time tracking it down, but I'd advise doing so.
>>
> The bug is in the compiler. That's why MS want a bug report.
Is it? Does the "report the problem to Microsoft" message reliably
indicate a bug in Microsoft's compiler, or could it be triggered by a
bug in the program itself? (I have no idea what the answer to that
question is.)
> The thing to do (easier said than done) is to run the code through another
> compiler to see if everything is correct.
> If you are stuck with a bad compiler, there's nothing much you can do,
> except look at unusual constructs to see what is causing it to misbehave, or
> what the OP is doing, which is to play with the code and hope the problem
> goes away.
If it's the result of undefined behavior in the program, recompiling
with another compiler coud very well *seem* to correct the problem.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.
- Follow-Ups:
- Re: How to test whether strstr() returns a null pointer or not?
- From: Flash Gordon
- Re: How to test whether strstr() returns a null pointer or not?
- From: Malcolm
- Re: How to test whether strstr() returns a null pointer or not?
- References:
- How to test whether strstr() returns a null pointer or not?
- From: John Smith
- Re: How to test whether strstr() returns a null pointer or not?
- From: Barry Schwarz
- Re: How to test whether strstr() returns a null pointer or not?
- From: John Smith
- Re: How to test whether strstr() returns a null pointer or not?
- From: Barry Schwarz
- Re: How to test whether strstr() returns a null pointer or not?
- From: John Smith
- Re: How to test whether strstr() returns a null pointer or not?
- From: Keith Thompson
- Re: How to test whether strstr() returns a null pointer or not?
- From: Malcolm
- How to test whether strstr() returns a null pointer or not?
- Prev by Date: Re: selecting the next language
- Next by Date: Re: Why compiler not generating any warning ?
- Previous by thread: Re: How to test whether strstr() returns a null pointer or not?
- Next by thread: Re: How to test whether strstr() returns a null pointer or not?
- Index(es):
Relevant Pages
|