Hi,

B. Bogart wrote:
The problem is passing the A_GIMME arguments from a wrapper function to a function that runs in a separate thread.

[snip]

This is the thread safety problem right here:

        threadArgs->argv = argv;

You need to *copy* *all* the data needed by the child thread that might be modified in the main thread later.

[snip]

In PD <.0.40.3 the proper argument is printed from both the thread and in the spawning function.

You've just been lucky!

How does the symbol "input.jpg" end up turning into "float" in 0.42.4?

It could turn into anything - when the inlet method exits pd can do what it likes with the argv memory...

Any ideas for solutions?

Copy the argv array into new memory.



Claude

_______________________________________________
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev

Reply via email to