Tuto WINDEV 25

372 Part 6: Optimizing and debuging a project Cleaning the project Our project contains several unused files. You have the ability to clean the project in order to keep the necessary elements only. The executable and the client setup is not weighted with images, external files, ... not used. ▶ To fix this problem: 1. Click the [...] button to get more details. 2.  The wizard for cleaning a project starts. This wizard indicates the unused files that can be deleted. 3. Go to the next step. 4. Select the type of cleaning to perform. You can: • create a zip file with the useless files. • move the useless files into a specific directory. 5. Validate the option proposed by default and go to the next step. 6. End the wizard. Our project was optimized according to the tips given by the static audit. The static audit is used to get an overall status on the source code of your project. Our advice: run it on a regular basis! Let’s see what happens at run time by starting the dynamic audit. Dynamic audit The dynamic audit is used to study the application execution. The audit is used to detect problems such as: • Excessive memory consumption, • Slowness of algorithms used, • Errors "hidden" at run time, • ... A dynamic audit can be performed in a test environment or on a live application. The "WD Optimization" project contains a specific window triggering errors that can be detected by the dynamic audit. The dynamic audit and the project test will be started at the same time. ▶ To start the dynamic audit on the "WD Optimization" project: 1. On the "Project" pane, in the "Test mode" group, expand "Test mode" and select "Debug the project while the audit is enabled". The project test is run.

RkJQdWJsaXNoZXIy NDQ0OA==