Ptr to a variable

Hi all,

I’m working on a MT Project with Fp plugin (Bob Delanney and now maintained by Einhugur Software).
As you know, working either with Master and Slaves Apps, or with Worker class, it’s only possible to exchange string values between Master and Slaves.
My problem is that exporting Strings from BigIntegers or importing Strings into BigIntegers is very Time consuming, and some values may be very large, even huge.

That said, my question is: is there a way to get a Ptr to a variable of type BigInteger (or BigFloat or other type defined in Fp plugin), to transmit it as a string (or other type if possible) to the Master App, and then, to access the Memory area pointed to by this Ptr?

Thanks a lot in advance for any idea or advice.
Jean-Luc

Generally speaking, no. The two apps don’t share the same memory address space, so a pointer used by one app will not refer to the same actual memory as the same pointer used by a different thread.

Either you can share memory addresses (Xojo Thread class) or you can run on multiple CPU’s concurrently (Xojo Worker class). You can’t do both in Xojo.

Would suggest using words like Primary and Secondary, or Controller and Workers, etc. There are lots of alternatives. [Moderator edit: removed next sentence. Please stay on topic. Gavin.]

There is no prohibition on those terms here in a programming context. Please return to the topic at hand.

2 Likes

Look for Shared Memory in the MBS plugin.

3 Likes

Thank you Beatrix, I will have a look at this class I didn’t know. It looks interesting.