Am 15.05.2021 um 18:27 schrieb Ryan Joseph via fpc-devel:

On May 13, 2021, at 2:38 PM, Sven Barth <pascaldra...@googlemail.com> wrote:

Ah, you need to use ChangeOwnerAndName then and simply pass in the same name 
you used for the constructor (cause otherwise it tries to use the name that is 
currently stored in the list).
Looking at this again today and I have yet another question to confirm. I 
create one of the types using ctypesym.create but the others were just 
references from the system unit. We only want to change owner of the symbol I 
create, right? Not the system unit ones? If not changing owner maybe we need to 
add some ref count or something? just confirming to make sure.
You only need to change the owner of those you create using ctypesym.create. The others are preexisting and you must not touch them in any way.

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to