[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41836] plot command: temporaray file names no

From: anonymous
Subject: [Octave-bug-tracker] [bug #41836] plot command: temporaray file names not unique
Date: Wed, 12 Mar 2014 08:42:23 +0000
User-agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Follow-up Comment #4, bug #41836 (project octave):

... just tried the Windows build from the web site

GNU Octave, version 3.8.1
... lines skipped ...
Octave was configured for "i686-w64-mingw32".
... lines skipped ...
octave:1> tempname()
ans = C:Usersea55AppDataLocalTempoct-1
octave:1> tempname()
ans = C:Usersea55AppDataLocalTempoct-2
octave:2> tempname()
ans = C:Usersea55AppDataLocalTempoct-3

Shows the same behavior. 

Windows has a simple function to create temporaray file names ('limited' to
65000 variants)

UINT WINAPI GetTempFileName(
  _In_   LPCTSTR lpPathName,
  _In_   LPCTSTR lpPrefixString,
  _In_   UINT uUnique,
  _Out_  LPTSTR lpTempFileName

Another more safe option is to use the following COM function to create a
unique ID

HRESULT CoCreateGuid(
  _Out_  GUID *pguid

Header: Objbase.h, Library: Ole32.lib, DLL: Ole32.dll 

I don't know about the GNU libraries, though.


Reply to this item at:


  Nachricht gesendet von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]