Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've been developing an application for the last 9 months on a loaded machine. today I got the chance to install and operate on it's destination pc, which is a pentium 2 300 w/ 128 meg of ram.

 

It's basically a windows application, that uses an odbc data source (mySql). There are a couple custom .dll's it uses to interface with network applications. Many buttons on the screen, and textbox controls, basically for data entry.

 

---------

 

The application runs at a snails pace which is unacceptable. the screen refreshes the buttons one at a time, and looks like i can actually see windows drawing the frames, etc...

 

The entire time the hard disk is going bezerk, and I am constantly waiting for the app to process the next button click event.

 

Most everything is in memory, until the end when i hit the commit button and sends and recieves data from mySQL server.

 

is there a switch or option i'm supposed to set in the release version, to cut down on some extra debugging activity or logging that may occur? because it's doing alot of unecessary disk activity that I can see. It doesnt run like a normal application, for example - microsoft word.

 

Please advise, thanks.

www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
Posted

Debug.Write calls won't affect the performance of your final release.

 

From doc.

You can write run-time messages to the Output window using the Debug class or the Trace class, which are part of the System.Diagnostics class library. Use the Debug class if you only output in the Debug version of your program. Use the Trace class if you want output in both the Debug and Release versions. For more information, see System.Diagnostics Namespace.

There is no spoon. <<The Matrix>>
  • Administrators
Posted

Debug output goes to any attached debugger - if you are running your application from the IDE then it will normally be the Output Window, although you can access this information in other ways.

When you do a release build the Debug. calls should be removed from the executable.

If you monitor your application (either through window's performance monitor or a 3rd party tool like Process monitor what kind of memory allocations / Garbage collections / CPU usage are you getting?

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...