<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>30 May 2015 13:19:00 Z</lastBuildDate><pubDate>29 May 2015 20:00:00 Z</pubDate><description>Hi, all!&#13;
&#13;
I'm working on some multi-threading stuff. What I want to happen is for the thread to post messages to its creator's handle (handle passed as parameter to thread procedure). This is easy enough.&#13;
&#13;
However, for the next-level stuff, I want to pass arguments with those messages. Those arguments could be a string, a structure, anything, really. I understand that wParam and lParam are supposed to be integers, but I could pass the address to the memory space. So far so good.&#13;
&#13;
BUT - sometimes my window won't process those messages because the user has the window working on something else. By the time the window gets the message from the thread, the memory is no longer accessible/valid.&#13;
&#13;
So, my question - how can I prevent WinDev from destroying my strings/structures at the end of procedures? I understand that I will have to destroy them in my message handler.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure/read.awp</link><title>How to make variable persist beyond procedure?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52421/read.awp</comments><pubDate>30 May 2015 13:19:00 Z</pubDate><description>Hi Andrew,&#13;
&#13;
what you are describing matches exactly the class method... one thread=one object... and you can pass back and for…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52421/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52421/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure/read.awp">How to make variable persist beyond procedure?</source><title>Re: How to make variable persist beyond procedure?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52417/read.awp</comments><pubDate>30 May 2015 09:45:00 Z</pubDate><description>Andrew,&#13;
Have you thought of using Queues?&#13;
http://doc.windev.com/en-US/?1514021&#13;
They can be queues of any type of variable. Co…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52417/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52417/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure/read.awp">How to make variable persist beyond procedure?</source><title>Re: How to make variable persist beyond procedure?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52415/read.awp</comments><pubDate>29 May 2015 21:48:00 Z</pubDate><description>I was hoping for less work-around, more how-to-caus-a-variable-reference-to-not-be-deleted.&#13;
&#13;
I tried the shared memory first a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52415/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52415/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure/read.awp">How to make variable persist beyond procedure?</source><title>Re: How to make variable persist beyond procedure?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52414/read.awp</comments><pubDate>29 May 2015 20:10:00 Z</pubDate><description>Hi Andrew&#13;
&#13;
I can see several ways of achieving that...&#13;
&#13;
create a dynamic array in the calling program&#13;
write in it in the se…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52414/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure-52414/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52411-how-make-variable-persist-beyond-procedure/read.awp">How to make variable persist beyond procedure?</source><title>Re: How to make variable persist beyond procedure?</title></item></channel></rss>
