mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 15:47:51 +02:00
--- Merging r33362 into '.':
U rtl/objpas/sysutils/sysutilh.inc --- Recording mergeinfo for merge of r33362 into '.': U . --- Merging r33363 into '.': U rtl/win/sysutils.pp --- Recording mergeinfo for merge of r33363 into '.': G . --- Merging r33377 into '.': G rtl/objpas/sysutils/sysutilh.inc U rtl/objpas/sysutils/sysutils.inc --- Recording mergeinfo for merge of r33377 into '.': G . --- Merging r33378 into '.': G rtl/objpas/sysutils/sysutilh.inc G rtl/objpas/sysutils/sysutils.inc --- Recording mergeinfo for merge of r33378 into '.': G . # revisions: 33362,33363,33377,33378 git-svn-id: branches/fixes_3_0@33823 -
This commit is contained in:
parent
a57e3d1682
commit
bfcff22749
@ -216,6 +216,12 @@ type
|
|||||||
EArgumentOutOfRangeException = class(EArgumentException);
|
EArgumentOutOfRangeException = class(EArgumentException);
|
||||||
EArgumentNilException = class(EArgumentException);
|
EArgumentNilException = class(EArgumentException);
|
||||||
|
|
||||||
|
EPathTooLongException = class(Exception);
|
||||||
|
ENotSupportedException = class(Exception);
|
||||||
|
EDirectoryNotFoundException = class(Exception);
|
||||||
|
EFileNotFoundException = class(Exception);
|
||||||
|
EPathNotFoundException = class(Exception);
|
||||||
|
|
||||||
ENoConstructException = class(Exception);
|
ENoConstructException = class(Exception);
|
||||||
|
|
||||||
{ Exception handling routines }
|
{ Exception handling routines }
|
||||||
@ -312,6 +318,7 @@ Type
|
|||||||
{$i syshelph.inc}
|
{$i syshelph.inc}
|
||||||
|
|
||||||
procedure FreeAndNil(var obj);
|
procedure FreeAndNil(var obj);
|
||||||
|
procedure FreeMemAndNil(var p);
|
||||||
|
|
||||||
{ interface handling }
|
{ interface handling }
|
||||||
{$i intfh.inc}
|
{$i intfh.inc}
|
||||||
|
@ -160,7 +160,16 @@ end;
|
|||||||
temp.free;
|
temp.free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure FreeMemAndNil(var p);
|
||||||
|
|
||||||
|
var
|
||||||
|
temp:Pointer;
|
||||||
|
begin
|
||||||
|
temp := Pointer(p);
|
||||||
|
Pointer(P):=nil;
|
||||||
|
FreeMem(temp);
|
||||||
|
end;
|
||||||
|
|
||||||
{ Interfaces support }
|
{ Interfaces support }
|
||||||
{$i sysuintf.inc}
|
{$i sysuintf.inc}
|
||||||
|
|
||||||
|
@ -990,7 +990,7 @@ begin
|
|||||||
MaxMsgSize, { Maximum message size }
|
MaxMsgSize, { Maximum message size }
|
||||||
nil);
|
nil);
|
||||||
SysErrorMessage := MsgBuffer;
|
SysErrorMessage := MsgBuffer;
|
||||||
FreeMem(MsgBuffer, MaxMsgSize);
|
FreeMem(MsgBuffer, MaxMsgSize*2);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user