Hello, Is it possible to know if a given address in memory could belong wether to a pointer or a handle ? As I have never seen piece of code that could do such a thing I'm afraid to ask here a silly question. Maybe I'm supposing wrongly that pointers and handles dont live in the same space in memory and knowing the value of the address itself that we can calculate if it has a chance to be a handle or not. Sorry for this basic question, but I modified recently a function InsertText so that it can accept handles and of course I had a bug that made me crazy for about two days. In the edit field where the data were inserted, I obtained a few garbage chars always at the same offset. Everytime, I tried to track this bug going step by step with debug II, you know what ? there was no bug anymore. As soon as I restarted the prog in a normal way, hello world here it comes again. Finaly, I tried to store the data on disk directly from the handle and all was safe with no garbage. I was thinking of a bug in the drawhook function in PG until I realised I did not lock the handle before calling TEINSERT. Now I'd like to know if I can change my function so that it can receive handles and pointers as well, acting accordingly with the nature of the address. Thanks in advance. Alain PS : Maybe that one has been reported to Staz but _availMem is a missing constant in FB II (2.3.1).