So i have this app that i wrote to get the permissions on a directory and it works fine for small directories. however when i use it on a huge server it freezes when it compiles the file. i know the program is running but windows gets pissy because it doesnt communicate with the system or something
does anyone know good tips to avoid this?

Hi, Are you using any loop? Then use DoEvents inside the loop. If you call DoEvents in your code, your application can handle the other events.

Ex

For ............
     DoEvents
     ................
Next

thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.