ShellExecute and memory footprint?!
-
Hello, When using hotlinks for URL's in a Richedit Control, and then calling ShellExecute as follows:
ShellExecute(hWnd, NULL, pszURL, NULL, NULL, SW_SHOWNORMAL);
The memory footprint of my executable will go up about 2 1/2 megs. Is there a way to free this memory up after a URL is clicked, or am I implementing something wrong here? Thanks! . djrisc . -
Hello, When using hotlinks for URL's in a Richedit Control, and then calling ShellExecute as follows:
ShellExecute(hWnd, NULL, pszURL, NULL, NULL, SW_SHOWNORMAL);
The memory footprint of my executable will go up about 2 1/2 megs. Is there a way to free this memory up after a URL is clicked, or am I implementing something wrong here? Thanks! . djrisc .I suggest you change the first parameter of ShellExecute from "hWnd" to "NULL".
-
I suggest you change the first parameter of ShellExecute from "hWnd" to "NULL".
-
Hello, When using hotlinks for URL's in a Richedit Control, and then calling ShellExecute as follows:
ShellExecute(hWnd, NULL, pszURL, NULL, NULL, SW_SHOWNORMAL);
The memory footprint of my executable will go up about 2 1/2 megs. Is there a way to free this memory up after a URL is clicked, or am I implementing something wrong here? Thanks! . djrisc .I suspect because it has to load a dll (shell32.dll I think). This would not really expand your memory footprint since the memory of the dll is typically shared between all programs. If your using the task manager to view the memory footprint, you have to take what it says with a grain of salt. Joel Lucsy (jjlucsy@ameritech.net)