Location: Symbol Reference > Functions > JwRaiseOnNilMemoryBlock Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwRaiseOnNilMemoryBlock Function
Pascal
procedure JwRaiseOnNilMemoryBlock(const P: Pointer; const MethodName: TJwString; const ClassName: TJwString; const FileName: TJwString);
Parameters 
Description 
const P: Pointer 
defines a pointer to be validated  
const MethodName: TJwString 
defines the name of the method this parameter belongs to  
const ClassName: TJwString 
defines the name of the class the method belongs to. Can be empty if the method does not belong to a class  
const FileName: TJwString 
defines the source file of the call to this procedure. 
ParameterName 
defines the name of the parameter which is validated and belongs to this pointer  

JwRaiseOnNilMemoryBlock raises an exception EJwsclNilPointer if parameter P is nil; otherwise nothing happens. This function is like Assert but it will not be removed in a release build. 

 

Exceptions 
Description 
will be raised if P is nil 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!