Opened 13 years ago

Closed 13 years ago

#11 closed defect (fixed)

Gnuplot treatment of temporary files

Reported by: jari Owned by: jari
Priority: major Milestone: 0.2
Component: core Version: 0.2
Keywords: Cc:

Description

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 13 years ago by jari

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.