Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2004-12-27 13:56:32

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:

[530] f = fopen( cmdtab[ slot ].tempfile, "w" );
[531] fputs( string, f ); // <== HERE
[532] fclose( f );

The VC++ IDE is reporting that f is 0.

cmdtab[slot]: name value type
pid 0 int
func 0x0040c660 make_closure(void *, int) void (void *, int)*
closure 0x00d07904 void *
+ tempfile 0x00511f80 "c:\DOCUME~1\User\LOCALS~1\Temp\jam1264-00.bat" char *

The resolution would be to add:

[530a] f = fopen( cmdtab[ slot ].tempfile, "w" );
[530b] if( f == 0 ) report-error-and-exit;



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at