Home > Software engineering >  Do it himself a local storage warehouse management system, compiled EXE start slowly, to solve
Do it himself a local storage warehouse management system, compiled EXE start slowly, to solve

Time:10-28

Project contains a MDI forms, 15 child form, and five independent form, 10 module
Submain inside just some simple initialization code, in simple terms, involves reading configuration files, create folders, call a module, does not involve call form, only in the last load MDI form
I use msgbox mark test submain, from the first line of code to the last line, execution process is less than 1 second, but from the start the EXE to submain began to perform, for two to three seconds,
What on earth are two or three seconds to solve, this system load? What are the possible reasons and how to optimize?
Of course, through the project started will not appear this kind of circumstance, only exists in the compiled EXE, both the native code and P code [images]

CodePudding user response:

From the top, for bosses

CodePudding user response:

Turn off the anti-virus software a try,

CodePudding user response:

Beginning in formload place with
Me. Show

CodePudding user response:

3 computers, all tencent computer butler, no anti-virus software: an all-in-one, configuration is very general, turn off the housekeeper did start fast, as long as a second or so; A notebook I56300 + solid, housekeeper guan's not a huge difference, always two or three seconds to start; A desktop, I56100 + machinery, housekeeper none of the cases, the first start 1 seconds, the back is open EXE immediately jumped out the form, don't understand

CodePudding user response:

Guiyang
reference 3 floor old Ma Shanfu plugging waterproof engineering professional maintenance of swimming pool response:
where formload inside at the beginning of the add
Me. Show

And it doesn't matter, is not does not show the form, but didn't even begin to execute after start the program code, even in the first line interrupt msgbox submain would jump out to a couple of seconds

CodePudding user response:

reference 4 floor bincong response:
3 computers, all tencent computer butler, no anti-virus software: an all-in-one, configuration is very general, turn off the housekeeper did start fast, as long as a second or so; A notebook I56300 + solid, housekeeper guan's not a huge difference, always two or three seconds to start; A desktop, I56100 + machinery, housekeeper none of the cases, the first start 1 seconds, the back is open EXE immediately jumped out the form, don't understand the

Still had something to do with tencent managers,
Look to the white list, tencent butler added a try,

CodePudding user response:

Learning how to learn, you are all superior
  • Related