watching function-pointer
Original Reporter info from Mantis: nanobit @nanobit
-
Reporter name:
Original Reporter info from Mantis: nanobit @nanobit
- Reporter name:
Description:
Watching (mouse hint and watch view) of fnPtr leads to
modal message EObjectCheck: "Object reference is Nil."
And this fnPtr is not listed in the view of local variables.
Steps to reproduce:
program project1;
type tfnPtr = function( a: byte): byte;
function fn( a: byte): byte;
begin result := a+1; end;
procedure test;
var fnPtr: tfnPtr; r: integer;
begin
fnPtr := @fn;
r := fnPtr( 3);
end;
begin
test;
end.
Mantis conversion info:
- Mantis ID: 35339
- OS: Windows
- OS Build: 10
- Platform: win32
- Version: 2.0