Re: Detecting Reads of Global Uninitialized Variables



Well, the problem is that I expect my code to actually initialize all
the global variables. I want to make sure that I'm not missing any
initializations. I don't want to just go and add artificial
initializations. Basically, I'm just trying to verify that the
existing code does initialize all the variables (before reading from
them).

Any suggestions for that?

.



Relevant Pages

  • Re: ensuring certain code runs when returning to a form...
    ... then you should initialize them after you've gotten what ... I find the idea of using global variables for this to be highly ... it's always better to use vbNullString instead of "" in VBA, ...
    (comp.databases.ms-access)
  • Help with "Concurrent Network Server" Design
    ... initialize a few databases from files every time it launches and needs ... Since I use global variables I need to ... make sure that for each new connection, I need to initialize all these ... I need to know the perfect "Concurrent Network Server" design for the ...
    (comp.lang.c)
  • Help with "Concurrent Network Server" Design
    ... global variables and data structures. ... initialize a few databases from files every time it launches and needs ... for each new connection, I need to initialize all these global ... I need to know the perfect "Concurrent Network Server" design for the ...
    (comp.unix.programmer)
  • Re: Global variables not initialized properly (Win CE 5.0)
    ... In it I initialize several global variable to set values, ... inspection of the S-record file, I see that the linker is NOT ... initialization in executed code. ... initialize all my global variables during run-time. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Initial values of File scoped and Block level variables
    ... global variables are not "initialized" by the compiler. ... > segment memory using callocwhich does the "initialization" to NULL ... An implementation could use callocto initialize globals that aren't ...
    (comp.lang.c)