Opened 16 years ago

Closed 16 years ago

#11 closed defect (fixed)

Gnuplot treatment of temporary files

Reported by: Jari Häkkinen Owned by: Jari Häkkinen
Priority: major Milestone: 0.2
Component: core Version: 0.2
Keywords: Cc:


In Gnuplot.h there is a template function that uses mkstemp to acquire unique filenames. If succesful mkstemp return a file descriptor to a file opened for writing. This should be used to initialize a output stream. As it is now, a stream is created using the unique file name ..... the file is opened twice! And consequently closed twice. Previouisly the file was closed only once leading to too many opened files error. Fix the code to use the mkstemp file descriptor.

Change History (1)

comment:1 Changed 16 years ago by Jari Häkkinen

Resolution: fixed
Status: newclosed

Removed temporary file usage completely. Now using gnuplot's ability to receive inline data in commands.

Note: See TracTickets for help on using tickets.