[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TFindMethodEvent

Occurs when the streaming process needs to locate a method

Declaration

Source position: classesh.inc line 1198

type TFindMethodEvent = procedure(

  Reader: TReader;

  const MethodName: string;

  var Address: CodePointer;

  var Error: Boolean

) of object;

Description

If a TReader instance needs to locate a method and it doesn't find it in the streamed form, then the OnFindMethod event handler will be called, if one is installed. This event can be assigned in order to use different locating methods. If a method is found, then its address should be returned in Address. The Error should be set to True if the reader should raise an exception after the event was handled. If it is set to False no exception will be raised, even if no method was found. On entry, Error will be set to True.


Documentation generated on: Nov 16 2015