From: Reece Dunn (msclrhd_at_[hidden])
Date: 2004-12-28 05:19:03
Vladimir Prus wrote:
> Hi Reece,
> please do not use HTML messages.
I am not using HTML. I am sending it using Thunderbird v1 as text via
the gmane server. Is this a Yahoo group thing?
>> I have been getting the occasional exception in bjam.exe, so I have
>> switched to using a debug build. This has caught an exception in execnt.c:
>>  f = fopen( cmdtab[ slot ].tempfile, "w" );
>>  fputs( string, f ); // <== HERE
>>  fclose( f );
>> The VC++ IDE is reporting that f is 0.
> How/when does it happen? If we can prevent 'f' from being 0, it would be
> better than giving an error. What does "perror" print, for example?
I am not sure how/when it happens. How do you get the perror value from
a debug session? Anyway, I shall let you know when it occurs again.
I agree that preventing f == 0 is the right way to go, but I don't yet
understand why it is being set to 0 in this case. My feeling is that is
is being set to EMFILE since it does not occur predictably.
BTW, I am running in a bash 2.05 shell with command lines like:
bjam debug msvc-7.1 | log --echo
where log is my bjam to XML log generator.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk