[fpc-pascal] Anybody know X11 and XDND (drag-n-drop)

Marco van de Voort marcov at stack.nl
Fri Sep 10 10:18:54 CEST 2010

In our previous episode, Graeme Geldenhuys said:
> I'm having trouble fetching the XdndTypeList data. It works 100% on my
> 32-bit Linux laptop, but now trying on my 64-bit Linux desktop at
> work, the XGetWindowProperty() call under 64-bit linux for the
> XdndTypeList always returns count = 0, when in fact it should be 8, as
> my last section of the output shows. I simply forced count = 8,
> because I knew Nautilus has that many types, and wanted to see if my
> array of TAtom's actually contains the data - which it does!  So it
> does seem to fetch the data, it just doesn't report it in the
> variables: actualformat, count, remaining.

You are not passing unix types, and are passing pointers to 32-bit types to
parametesr that expect pointers to 64-bit types (pculong).

Since they are on the stack, they probably overwrite eachother. As always
with 64-bit, pay great care to the typing.

More information about the fpc-pascal mailing list