Print Page | Close Window

Lint detects not initialized variables

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5709
Printed Date: 14 May 2025 at 1:12am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Lint detects not initialized variables
Posted By: jansim
Subject: Lint detects not initialized variables
Date Posted: 06 December 2006 at 3:22pm

Hi,

We recently came across several problems we were not able to reproduce. One of them involved a pane that was not drawn ( no title, no content ).
The other involded a non-customizable/non-closable toolbar that disapeared forever.
And another that caused command bars to display under the panes.
 
Since we were not able to reproduce the problems, we scanned xtreme code using pc-lint. There were several cases where member variables were not initialized by constructor. This does not mean that they are not initialized at all, but it may be a clue that depending on the execution order, some members could be used before initialization.
 
If you are interested, I can send you the output of our scan.
 
Thank you,
Jansim



Replies:
Posted By: Oleg
Date Posted: 07 December 2006 at 12:51am
Hello,
yes, we very interested.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jansim
Date Posted: 13 December 2006 at 11:48am
http://forum.codejock.com/uploads/20061213_114216_codejock_lint.zip -
uploads/20061213_114216_codejock_lint.zip
Here, sorry for the delay, we released a version of PolyWorks last week.
 
You must be aware that pc-lint is not 100% reliable. Sometimes it complains about uninitialized variables that are in fact initialized later, but "could" be uninitialized if the program was not executed in the expected order.
 
Well, it's up to you own judgement.
 
Thank you,
Jansim


Posted By: Oleg
Date Posted: 13 December 2006 at 3:27pm
Thanks.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net