ShellExecute/Browser problem
-
I have an application with an About Dialog Box. The dialog displays an image, and when you click part of the image, a browser opens that takes you to a website. So far, so good. But what I'm finding is that if I close the browser immediately after it opens, it locks up for a few seconds with a blank, white screen. Eventually the browser closes. If I wait, say, ten seconds or so after the browser opens to close it, it will close immediately with no problems.. Here's my code for opening the browser:
::ShellExecute(NULL, "open", "http://www.lesliesanford.com", NULL, NULL, SW_SHOWNORMAL);
Nothing really special there. Any thoughts or clues? EDIT: Interesting. I just noticed that this problem occurs when I open IE outside of my application. This seems to be a problem that's independent of my app, i.e. my app's not causing it.
-
I have an application with an About Dialog Box. The dialog displays an image, and when you click part of the image, a browser opens that takes you to a website. So far, so good. But what I'm finding is that if I close the browser immediately after it opens, it locks up for a few seconds with a blank, white screen. Eventually the browser closes. If I wait, say, ten seconds or so after the browser opens to close it, it will close immediately with no problems.. Here's my code for opening the browser:
::ShellExecute(NULL, "open", "http://www.lesliesanford.com", NULL, NULL, SW_SHOWNORMAL);
Nothing really special there. Any thoughts or clues? EDIT: Interesting. I just noticed that this problem occurs when I open IE outside of my application. This seems to be a problem that's independent of my app, i.e. my app's not causing it.
yeah! it puzzled me first, because the same thing has been done by a dozen times by me, nothing went wrong then. so please update if you find a solution of that ( even if its nothing to do with your app )
Never Work Hard! - Work Smart!!! www.indianITforum.com
-
I have an application with an About Dialog Box. The dialog displays an image, and when you click part of the image, a browser opens that takes you to a website. So far, so good. But what I'm finding is that if I close the browser immediately after it opens, it locks up for a few seconds with a blank, white screen. Eventually the browser closes. If I wait, say, ten seconds or so after the browser opens to close it, it will close immediately with no problems.. Here's my code for opening the browser:
::ShellExecute(NULL, "open", "http://www.lesliesanford.com", NULL, NULL, SW_SHOWNORMAL);
Nothing really special there. Any thoughts or clues? EDIT: Interesting. I just noticed that this problem occurs when I open IE outside of my application. This seems to be a problem that's independent of my app, i.e. my app's not causing it.
Seen this problem many a time. Nothing to do with your Programming skills, apart from, why did you call this Browser App in the first place. This has to do with different threads having to do many things on a finite computer. Calling a Website is 'Expensive'. It typically involves downloading scripts, which gives you the next script title to download. These things take time to do, and things to dismantle! This won't be sorted untill we have: -1500 GB Drives as Standard -1500 MB Memory as Standard -1500 MB/S Network Connections -At the Same time, Everyody in Microsoft thinks that we are working with 10GB drives and 10GB Memory.and 1GB Connections. :rolleyes:
Bram van Kampen