C# is very slow when....

  • Thread starter Thread starter Steven Blair
  • Start date Start date
S

Steven Blair

Hi,

Been writing a C# application for the last week or so. Wehenevr I ran my
code from within .NET development environment, I had no problems. recently
though, when I press Run, it takes a long time for the application to run,
then when I am doing certain tasks (DB connections, registry access).

If I run the application as a standalone executable, I have no problems with
the speed.

Anyone got any ideas why this is happening?

Not sure this is any help, but the solution comprises of the following
(Windows App - Business Layer dll - Data Layer dll). The Business Layer is
referenced by a static member in a class belonging to the Windows App)

My feeling is, is that it is not my source code causing a problem, but a
problem with the .NET environment itself (2003)

Regards,

Steven
 
Hi,

Been writing a C# application for the last week or so. Wehenevr
I ran my code from within .NET development environment, I had no
problems. recently though, when I press Run, it takes a long
time for the application to run, then when I am doing certain
tasks (DB connections, registry access).

If I run the application as a standalone executable, I have no
problems with the speed.

Anyone got any ideas why this is happening?

Not sure this is any help, but the solution comprises of the
following (Windows App - Business Layer dll - Data Layer dll).
The Business Layer is referenced by a static member in a class
belonging to the Windows App)

My feeling is, is that it is not my source code causing a
problem, but a problem with the .NET environment itself (2003)

Steven,

F5 runs the app under the debugger. This can be noticeably slow.
Ctrl-F5 will run the app w/o the debugger. I usually see a big speed
difference between the two.

Hope this helps.

Chris.
 
Cant find the environment variable with that name, but running my source
with Ctrl + F5 makes a BIG difference :)

Thanks for the help

Regards,

Steven
 
Back
Top