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
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
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
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