mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 18:29:18 +02:00
+ New runerror 231 (exception stack error) and 232 (nothread support)
This commit is contained in:
parent
4b2084fb50
commit
0271650b3a
@ -58,7 +58,7 @@ end;
|
|||||||
function AcquireExceptionObject: Pointer;
|
function AcquireExceptionObject: Pointer;
|
||||||
begin
|
begin
|
||||||
If ExceptObjectStack=nil then begin
|
If ExceptObjectStack=nil then begin
|
||||||
runerror(0); // which error?
|
runerror(231); // which error?
|
||||||
end else begin
|
end else begin
|
||||||
Inc(ExceptObjectStack^.refcount);
|
Inc(ExceptObjectStack^.refcount);
|
||||||
AcquireExceptionObject := ExceptObjectStack^.FObject;
|
AcquireExceptionObject := ExceptObjectStack^.FObject;
|
||||||
@ -68,10 +68,10 @@ end;
|
|||||||
procedure ReleaseExceptionObject;
|
procedure ReleaseExceptionObject;
|
||||||
begin
|
begin
|
||||||
If ExceptObjectStack=nil then begin
|
If ExceptObjectStack=nil then begin
|
||||||
runerror(0); // which error?
|
runerror(231); // which error?
|
||||||
end else begin
|
end else begin
|
||||||
if ExceptObjectStack^.refcount = 0 then begin
|
if ExceptObjectStack^.refcount = 0 then begin
|
||||||
runerror(0); // which error?
|
runerror(231); // which error?
|
||||||
end;
|
end;
|
||||||
Dec(ExceptObjectStack^.refcount);
|
Dec(ExceptObjectStack^.refcount);
|
||||||
end;
|
end;
|
||||||
@ -311,7 +311,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.12 2003-10-06 15:59:20 florian
|
Revision 1.13 2003-11-26 20:12:08 michael
|
||||||
|
+ New runerror 231 (exception stack error) and 232 (nothread support)
|
||||||
|
|
||||||
|
Revision 1.12 2003/10/06 15:59:20 florian
|
||||||
+ applied patch for ref. counted exceptions by Johannes Berg
|
+ applied patch for ref. counted exceptions by Johannes Berg
|
||||||
|
|
||||||
Revision 1.11 2003/09/06 21:56:29 marco
|
Revision 1.11 2003/09/06 21:56:29 marco
|
||||||
|
@ -61,6 +61,7 @@ Const
|
|||||||
SInvalidPointer = 'Invalid pointer operation';
|
SInvalidPointer = 'Invalid pointer operation';
|
||||||
SInvalidVarCast = 'Invalid variant type case';
|
SInvalidVarCast = 'Invalid variant type case';
|
||||||
SInvalidVarOp = 'Invalid variant operation';
|
SInvalidVarOp = 'Invalid variant operation';
|
||||||
|
SNoThreadSupport = 'Threads not supported. Recompile program with thread driver.';
|
||||||
SOutOfMemory = 'Out of memory';
|
SOutOfMemory = 'Out of memory';
|
||||||
SOverflow = 'Floating point overflow';
|
SOverflow = 'Floating point overflow';
|
||||||
SPrivilege = 'Privileged instruction';
|
SPrivilege = 'Privileged instruction';
|
||||||
@ -76,7 +77,10 @@ Const
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.1 2003-10-06 21:01:06 peter
|
Revision 1.2 2003-11-26 20:12:08 michael
|
||||||
|
+ New runerror 231 (exception stack error) and 232 (nothread support)
|
||||||
|
|
||||||
|
Revision 1.1 2003/10/06 21:01:06 peter
|
||||||
* moved classes unit to rtl
|
* moved classes unit to rtl
|
||||||
|
|
||||||
Revision 1.8 2003/01/01 20:58:07 florian
|
Revision 1.8 2003/01/01 20:58:07 florian
|
||||||
|
@ -152,6 +152,7 @@ type
|
|||||||
EPackageError = class(Exception);
|
EPackageError = class(Exception);
|
||||||
|
|
||||||
ESafecallException = class(Exception);
|
ESafecallException = class(Exception);
|
||||||
|
ENoThreadSupport = Class(Exception);
|
||||||
|
|
||||||
|
|
||||||
{ Exception handling routines }
|
{ Exception handling routines }
|
||||||
@ -218,7 +219,10 @@ Type
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.3 2003-11-26 20:00:19 florian
|
Revision 1.4 2003-11-26 20:12:08 michael
|
||||||
|
+ New runerror 231 (exception stack error) and 232 (nothread support)
|
||||||
|
|
||||||
|
Revision 1.3 2003/11/26 20:00:19 florian
|
||||||
* error handling for Variants improved
|
* error handling for Variants improved
|
||||||
|
|
||||||
Revision 1.2 2003/10/25 23:43:59 hajny
|
Revision 1.2 2003/10/25 23:43:59 hajny
|
||||||
|
@ -237,6 +237,7 @@ begin
|
|||||||
228 : E:=EExternalException.Create(SExternalException);
|
228 : E:=EExternalException.Create(SExternalException);
|
||||||
229 : E:=EIntfCastError.Create(SIntfCastError);
|
229 : E:=EIntfCastError.Create(SIntfCastError);
|
||||||
230 : E:=ESafecallException.Create(SSafecallException);
|
230 : E:=ESafecallException.Create(SSafecallException);
|
||||||
|
232 : E:=ENoThreadSupport.Create(SNoThreadSupport);
|
||||||
else
|
else
|
||||||
E:=Exception.CreateFmt (SUnKnownRunTimeError,[Errno]);
|
E:=Exception.CreateFmt (SUnKnownRunTimeError,[Errno]);
|
||||||
end;
|
end;
|
||||||
@ -382,7 +383,10 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.2 2003-11-26 20:00:19 florian
|
Revision 1.3 2003-11-26 20:12:08 michael
|
||||||
|
+ New runerror 231 (exception stack error) and 232 (nothread support)
|
||||||
|
|
||||||
|
Revision 1.2 2003/11/26 20:00:19 florian
|
||||||
* error handling for Variants improved
|
* error handling for Variants improved
|
||||||
|
|
||||||
Revision 1.1 2003/10/06 21:01:06 peter
|
Revision 1.1 2003/10/06 21:01:06 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user