<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>27 Feb 2015 07:00:00 Z</lastBuildDate><pubDate>27 Feb 2015 07:00:00 Z</pubDate><description>Hi&#13;
I have 2 internal windows, essentially consisting of table controls. When I created the internal window control I specified IW1 as the default window, and I use ChangeSourceWindow to IW2 depending on a selection in a combo box.&#13;
&#13;
My problem is that IW1 works perfectly but, whilst the window changes correctly to IW2 as soon as I click anywhere on that window I get a Visual C++ Runtime error "Application requested the runtime to terminate in an unusual way" &amp; the whole thing crashes. The odd thing though is that if I tab into the window it works perfectly. If I change the default window to IW2 that works OK but then ChangeSourceCode to IW1 gives me the same error. I have several procedures in the windows &amp; I have made sure the names &amp; parameters are identical in each one. One window declares a structure which I duplicated in the other, just in case that was the problem but no luck.&#13;
&#13;
I've tried deleting CPL etc but still no good. Any ideas?&#13;
&#13;
Thanks&#13;
&#13;
David&#13;
&#13;
Found it - I just needed to check which internal window was current before attempting to change it. The code for ChangeSourceWindow was being called a second time when it was getting the focus by mouse click. If it was already the current window it would crash.&#13;
&#13;
David</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50710-wd17-internal-windows-solved/read.awp</link><title>[WD17] Internal Windows **SOLVED**</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
