Hi, I have a weird problem that hopefully someone can give me some insight on. I have created a class that has a function that goes out on the Internet and downloads 1000+ websites using a loop. I turned the class into an ActiveX DLL. When I debug the DLL in visual basic, I'm able to stop it whenever I want to, no problem. I just click on the "End" button (that square button in the IDE). However, when I make a new project and include a complied version of the DLL in the project and run that function, it doesn't stop when I press the "End" button, it keeps running it's loop. This will make it very hard (impossible really) for someone to debug a project with this DLL attached. I put a DoEvents in the loop, but it keeps on running anyway. Is there any way I can tell the DLL to look for a termination command when it is running?
Be an idiot:
Be an idiot: