Best fix for all this and to fix windows 7 freezing i've used is as follows. I've been using this for ages and ages weeks on iccup and have played nearly 70 games this season day to day and its working without freezing anymore.
make a .bat file with this in it:
cmd.exe /C start /affinity 1 C:\"Program Files\ICCup\Launcher"\"Launcher.exe"
ping 127.0.0.1 -n 2
taskkill /f /IM explorer.exe
ping 127.0.0.1 -n 2
rem cmd.exe /C start /affinity 1 C:\Games\Starcraft\StarCraft.exe
rem Wait for the game to quit, press Enter to continue
The batch file should use windows compatibility mode for XP sp3 and 640x480 resolution the rest doesn't matter.
In starcraft because everyone has multi core systems now but the tricky thing is windows 7 is a bit different in that under Speed - Enable CPU Throttling disable this not enable even though it sound like it should be helpful it does the opposite in windows 7.
Also under Video: Enable Color Cycling should be OFF (this means water doesn't change color and stuff nothing important)
And Disable Unit Portraits.
So, use a batchfile setting affinity to your 1st core for Iccup launcher which in turn makes starcraft only use the 1st core as you use the Launcher to launch starcraft not manually.
This disable CPU throttling as we set the affinity ourselves and it would only cause crashes.
Now turn off Color Cycling & Unit Portraits.
All this and in Windows 7 on a dual core Intel I stopped crashing completely. I used to crash all the time and tested all the combinations of things and all these seem to make it fine. You can tab in and out as much as you like, your resolution will switch fine to your normal desktop resolution i.e. I use 1900x1200. I even use dual monitors and put stuff on my second monitor like films or youtube or desktop gadgets and its fine.
Only unit portraits 'might' be alright to turn back on but I didn't test as I never cared about it anyways.
Note: The pings to yourself are just for a delay to allow explorer to completely close as an indication before you should launch starcraft. I tested the 98/Me compatibility but it causes a problem with connecting to Iccup and stuff iirc. That 98/Me would fix the colors by itself but do it in the above way for the most stable solution I've experienced.