Quote Originally Posted by Delfi
Are you out of your mind mixing pointers with 32 bit unsigned integer types? that code WILL break on any non-32 bit platform, what's wrong with just using a pointer type and use that
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.

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: