Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
when i built release project, and when im double click on .exe file of compiled project it tooks around 2 minutes to open, , my project only 173Kb size.I checked .exe with ANTS PERFORMENCE, it says that much time takes "executable hidden methods without source" Winforms contains around 20 textboxes with 8000 chars on each.Those textboxes hided out of the form and i made them small size hided into GroupBoxes. If i will disable them or make them invisble, and enabled them when code needs it, will it help? Or any another solution?

What I have tried:

I checked .exe with ANTS PERFORMENCE, it says that much time takes "executable hidden methods without source"
Posted
Updated 28-Jun-17 8:36am
Comments
RickZeeland 23-Jun-17 8:41am    
Do you have any references to other not standard dll's ?
JeezyWonder 23-Jun-17 8:43am    
I/O ports, im using serial
RickZeeland 23-Jun-17 8:44am    
What happens if you disable/remove this dll ?
JeezyWonder 23-Jun-17 8:51am    
Will try, so you think its only about using dll's? It's not about massive chars in textboxes?
Jochen Arndt 23-Jun-17 8:51am    
You should profile your application: Beginners Guide to Performance Profiling

Do you check for existing serial ports by trying to open them within a loop?
That will take a long time for ports that does not exist.

1 solution

so the text boxs that you put on the form which you are using to store values I assume are causing the issue?

Why not convert these into variables global in your code so you can keep the information in there? they are just string values correct?

The initialization of these 20 8000 character text boxes are causing your issue most likely.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900