Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:


I was wondering if anyone knows how to speed up or turn off error checking
in vb.net.  I have a large application and have no errors. but trying to add
new code or create new code takes forever compared to vb6 any hints?
1 Solution
One way to write faster Applications are by using application blocks:  http://builder.com.com/5100-6386-1050690.html

Also, avoid:
1. Using late-bound values (where every object is of type Object). The application then needs to inspect the object type before calling its methods.
2. Creating too many objects in loops. Although object are easy to create, if you're creating a lot of them, your application can get slow.
3. Using unstructured exception handling (On Error Goto) instead of Try...Catch.
4. Using Try...Catch to handle failure cases instead of checking for a failure before making a call that could fail.
5. Not considering performance until the application comes to a grinding halt. You've got to measure application performance as you develop it, so you can more easily fix performance regressions.

To help you measure application performance, you can use CLR Profiler, a great tool for analyzing and profiling .NET applications. You can download from http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB-9B7A-94635BEEBDDA&displaylang=en.

the above answer is excellent.

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now