[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tmpnam(0)
From: |
jle |
Subject: |
tmpnam(0) |
Date: |
Mon, 26 Mar 2001 18:06:56 +0200 |
On a HP Visualize system running HPUX 10.20,
using gcc-2.95.2 or gcc-2.95.3, ddd crashes due
a call to tmpnam(0) returning NULL
File : comm-manag.C
Line: info->tempfile = tmpnam(0);
This is due to the fact I force C++ compiler to "g++ -threads"
In multithreaded mode a call to tmpnam(0) (on HP !)
does not operate and returns NULL !! (so says HP doc on tmpnam)
To circonvene the bug, use:
char buf[2048];
.... tmpnam(buf)...
Other ddd features are potentially affected - see in:
PlotAgent,
comm-manag.C
ddd.C
exit.C
plotter.C
print.C
show.C
Friendly yours,
Jacques Leroy