<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 May 2017 18:06:00 Z</lastBuildDate><pubDate>8 May 2017 07:23:00 Z</pubDate><description>Hello,&#13;
&#13;
I am using Image Control to show images.&#13;
&#13;
These images are on a remote web server.&#13;
&#13;
I have set the Image Control's (Details) Zoom and scroll with fingers to Automatic Scroll and Zoom. Because of this User can swipe on the Image Control to load another Image from server.&#13;
&#13;
I am first fetching the image name from remote MySQL database and I have the following code in the Horizontal and vertical swipe event for loading Image:&#13;
IF InternetConnected() = False THEN Error("Internet not available") RETURN END HTTPRequest("http://xxxxxxxxxxxxxxx.xxx/photo_gallery/" + PhotoFileName) IF ErrorOccurred = False THEN sResult is Buffer = HTTPGetResult(httpResult) IF Position(sResult,"404") THEN Info(HTMLToText(sResult)) ELSE IF Length(sResult) &gt; 0 THEN IMG_Photo = sResult END END END&#13;
This is working perfectly as long as the user is patient and waits for the image to load. But if the user swipes multiple times in quick succession the app crashes.&#13;
&#13;
How can I prevent this from happening?&#13;
&#13;
TIA</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60768-wm20-fetching-image-from-server-show-image-control/read.awp</link><title>[WM20] - Fetching Image From Server to show in Image Control some times crashes</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/60768-wm20-fetching-image-from-server-show-image-control-60784/read.awp</comments><pubDate>8 May 2017 18:06:00 Z</pubDate><description>Here is an easier way to do this. Just use Hourglass, the same happened to me, if the user swiped too fast or clicked the next a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60768-wm20-fetching-image-from-server-show-image-control-60784/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60768-wm20-fetching-image-from-server-show-image-control-60784/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60768-wm20-fetching-image-from-server-show-image-control/read.awp">[WM20] - Fetching Image From Server to show in Image Control some times crashes</source><title>Re: [WM20] - Fetching Image From Server to show in Image Control some times crashes</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60768-wm20-fetching-image-from-server-show-image-control-60782/read.awp</comments><pubDate>8 May 2017 14:36:00 Z</pubDate><description>Hi&#13;
&#13;
you could inactivate the swipe (or the whole window) on the first line of your code, thus FORCING the user to wait for the…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60768-wm20-fetching-image-from-server-show-image-control-60782/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60768-wm20-fetching-image-from-server-show-image-control-60782/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60768-wm20-fetching-image-from-server-show-image-control/read.awp">[WM20] - Fetching Image From Server to show in Image Control some times crashes</source><title>Re: [WM20] - Fetching Image From Server to show in Image Control some times crashes</title></item></channel></rss>
