Dear Janch

Now it works. This version is perfect. No memory errors at all.
Thank you a lot. I appreciate