I don't think there is something wrong about it, both types have the same size SizeOf(Pointer) = SizeOf(LongWord). Also I'm compiling it with Delphi for Win32, and I don't intend the code to be multiplatform... there would be a lot of things I'd have to change, starting with DirectX 9.Originally Posted by Delfi
The method is being called correctly (I tested it), the problem is Self is not being passed. Any ideas?
EDIT: HAHAH! Thanks Delfi, I just tested the sizes of those types to make sure my post was right, and found the size of a method type is 8, not 4. Using Int64 to store it should fix the problem. :lol:
Bookmarks