[fpc-devel] Bug in SysUtils.GetTempFileName?

2006-09-01 Thread Sergei Gorelkin
Hello, I've hit another segfault, this time it was code calling WinApi function GetTempFileName(). Resolving the call explicitly to Windows.GetTempFileName() works. It appears that problem is in cross-platform analog of GetTempFileName() that is contained in SysUtils unit. Looking at the RTL

Re: [fpc-devel] Bug in SysUtils.GetTempFileName?

2006-09-01 Thread Daniël Mantione
Op Fri, 1 Sep 2006, schreef Sergei Gorelkin: function GetTempFileName(Dir,Prefix: PChar; uUnique: DWORD; TempFileName: PChar):DWORD; (note that it's not compatible with WinApi because 'stdcall' is missing!) Naturally, under Windows the function is not needed because it's contained in

Re[2]: [fpc-devel] Bug in SysUtils.GetTempFileName?

2006-09-01 Thread Sergei Gorelkin
Friday, September 01, 2006, 11:48:17 AM, Daniël wrote: DM Op Fri, 1 Sep 2006, schreef Sergei Gorelkin: function GetTempFileName(Dir,Prefix: PChar; uUnique: DWORD; TempFileName: PChar):DWORD; (note that it's not compatible with WinApi because 'stdcall' is missing!) Naturally, under Windows

Re[2]: [fpc-devel] Bug in SysUtils.GetTempFileName?

2006-09-01 Thread Daniël Mantione
Op Fri, 1 Sep 2006, schreef Sergei Gorelkin: DM There exists a wrapper in rtl/win/sysutils.pp, which is necessary because DM otherwise a uses sysutils would not be enough to use this function. Both DM the Windows specific and the platform independend one do not use syscall DM and are