Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Lint detects not initialized variables
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Lint detects not initialized variables

 Post Reply Post Reply
Author
Message
jansim View Drop Down
Groupie
Groupie


Joined: 03 November 2005
Location: Canada
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote jansim Quote  Post ReplyReply Direct Link To This Post Topic: Lint detects not initialized variables
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2006 at 12:51am
Hello,
yes, we very interested.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jansim View Drop Down
Groupie
Groupie


Joined: 03 November 2005
Location: Canada
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote jansim Quote  Post ReplyReply Direct Link To This Post Posted: 13 December 2006 at 11:48am
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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 December 2006 at 3:27pm
Thanks.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.