Description
During a VB6 analysis the analysis ended with the error "The analysis has not ended correctly (Error code 2)" in the CAST-MS.
Please find the screen shot below:
Below is the error in the analysis log:
Observed in CAST AIP
Release | Yes/No |
---|---|
8.3.x | |
8.2.x | |
8.1.x | x < 1 |
8.0.x | x < 3 |
7.3.x | x < 10 |
7.2.x | |
7.0.x |
Observed on RDBMS
RDBMS | Yes/No |
---|---|
Oracle Server | |
Microsoft SQL Server | |
CSS3 | |
CSS2 | |
CSS1 |
Step by Step Scenario
- Package the source code
- Run the analysis, analysis ends with error in the analysis log.
Action Plan
The problem comes from the project file.
The analyzer expect to find in a vbp file, a line of the form :
Type=<Project kind>
A project kind may take the following values : Exe, Dll
If the Type is missing analyzer would throw an exception as seen in the analysis log.
- Identify which analysis unit is failing, you can identify the failing analysis unit by checking the analysis log.
- Check in the analysis log just above the Fatal error which analysis unit is under processing and then open the corresponding project file and check for the Project type.
- Search for "Type=" in the project file
- if it is missing then manually enter the project kind in the project file and save it.
For example: Type=exe or Type=Dll
- Run the analysis.
Impact on Analysis Results and Dashboard
Impact of issue: Analysis crashes with error message in the analysis log
Impact after applying solution: Analysis runs fine.
Notes/comments
Ticket # 4135
Related Pages