Faster Executible??

  • Thread starter Thread starter trint
  • Start date Start date
T

trint

In Visual Studio .Net 2003, what can I do with my c# application to
make the exe run as fast as possible? It seems very slow (although it
is checking the error status of the printer, and waiting for a response
accross a network). Any faster at all would be great.
Thanks,
Trint
 
That is a vary broad question, just like asking for the meaning of life.
Can you ask something more specific related to your problem?
 
trint said:
In Visual Studio .Net 2003, what can I do with my c# application to
make the exe run as fast as possible? It seems very slow (although it
is checking the error status of the printer, and waiting for a response
accross a network). Any faster at all would be great.
Thanks,
Trint

Put the printer error status detection code into another thread and display
a progress. This won't make it any faster, but will not hang while it's
detecting the error status. So, you can do other things during the
detection (such as display and update the progress or a graphical icon that
displays that there is something going on).

Hope this helps...

Mythran
 
Mythran,
Do you mean a separate application? The only problem is that if the
laserjet has any type of error, the printing must stop immediately.
Thanks,
Trint
 
That is a vary broad question, just like asking for the meaning of life.

The answer to this question is short and well known: 42

:-)
 
trint said:
Mythran,
Do you mean a separate application? The only problem is that if the
laserjet has any type of error, the printing must stop immediately.
Thanks,
Trint

No, take a look at the Threading examples in the MSDN library for help on
threading. Threading is useful because it allows applications to do more
than 1 thing at once. Sort of like running 2 programs at the same time but
instead, it's all coming from the same executing process with only 1 set of
source code running.

That's how you are allowed to cancel pending actions that are running in
Windows (such as some installations, or other applications). They make use
of Threading.

Mythran
 
Back
Top