I tested the following code with laz2.2.0-fpc3.2.2/64bit on Win 11, and it compiles and runs without any issue:
Thanks.This is what I had. I see now that this code worked fine in another program of mine. I found now out the reason it failed for me was that i load other units like versiontypes, versionresource from my previous attempts to get it to work. i removed them et voilá, everything works as described in the Wiki.