Click to See Complete Forum and Search --> : Inordinate Delay in Displaying the Form?


hellhammer
October 25th, 2004, 04:10 PM
Hello! I'm attempting to write an application in VC++ .NET 2003. My application works alright, but it takes at least 10 seconds for the Form to be displayed.

This happens not just on my work PC (P4 1.5GHz, 768MB RAM) but also on my PC at home (AMD Athlon XP 1700+, 768MB RAM)

I've written a similar App in VC# and the Form is displayed almost immediately.

In VC++, the Build Time is displayed as 4s. It then takes AT LEAST 10 seconds for the Form to be displayed.

My Application is neither large nor complex.

I am new to VC++ and my understanding is that all the code is written in the Form.h file, and nothing needs to be added to the Form.cpp file. Is that correct?

Do I need to change any Solution properties? They are all currently set at their default values.

I would really appreciate any suggestions to improve the speed of Form display.

Thanks!

indiocolifa
October 26th, 2004, 05:37 AM
I got the same problem ago, and it showed only when you are executing in Debug Mode.

Did you try running the program by pressing Ctrl+F5 (run without debugging)?

2 ) And you only need to edit your .H files, just don't touch the CPPs (that's the manner I think it should be done ;) )

Hope this helps!
Cheers

hellhammer
October 26th, 2004, 11:31 AM
Hey Indio,

Thanks for the reply! Ctrl+F5 makes it execute a lot quicker!

HH.

Flip
December 15th, 2004, 05:36 PM
With Managed C++ I have found that when debugging there are a bunch of dlls that get loaded before execution. This delay can be avoided by going to the property settings for the project and look in the Debugging tab/Debugger Type-- change it from auto to Managed only.. This should help.


Flip