Re: How to test whether strstr() returns a null pointer or not?



"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.
.



Relevant Pages

  • Re: LoadPicture VB function in Office:mac 2004
    ... this is a known bug. ... Please take a moment to visit this URL and send a report ... MVPs are not Microsoft Employees ... > properties page to manually set the picture property of the image1 object ...
    (microsoft.public.mac.office.excel)
  • RE: Nasty bug in the C# compiler, it truncates values on the stack
    ... Microsoft Developer Support ... >private void Bug() ... > bool b = false; ... >checked the MSIL code and it appears that the compiler chocked on the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is there someplace to report grammar checker errors?
    ... We would all like every Microsoft product to be perfect (and I think you ... There are ways to report bugs, and all reported bugs are considered. ... bug and the number of users it affects. ... grammar checker makes an incorrect suggestion if it means taking time away ...
    (microsoft.public.word.newusers)
  • Re: Help us please
    ... If you cannot access the MS bug report sites, ... > I am trying to report VFP bugs for Microsoft to correct it in VFP9 because now we ... > good company as Microsoft. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: A bug in MS Access
    ... Allen Browne - Microsoft MVP. ... > before and I couldn't find a forum to report this bug. ... To vote for this suggestion, ...
    (microsoft.public.access.modulesdaovba)