Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ODBC - Microsoft SQL server Pin
Renjith Ramachandran23-Apr-02 17:45
Renjith Ramachandran23-Apr-02 17:45 
GeneralRe: ODBC - Microsoft SQL server Pin
Carlos Antollini23-Apr-02 8:08
Carlos Antollini23-Apr-02 8:08 
GeneralRe: ODBC - Microsoft SQL server Pin
Wizard_0123-Apr-02 8:10
Wizard_0123-Apr-02 8:10 
GeneralRe: ODBC - Microsoft SQL server Pin
Carlos Antollini23-Apr-02 8:13
Carlos Antollini23-Apr-02 8:13 
GeneralRe: ODBC - Microsoft SQL server Pin
Wizard_0123-Apr-02 8:17
Wizard_0123-Apr-02 8:17 
GeneralRe: ODBC - Microsoft SQL server Pin
Carlos Antollini23-Apr-02 8:28
Carlos Antollini23-Apr-02 8:28 
GeneralClass static variables initalization problem during program run Pin
23-Apr-02 4:57
suss23-Apr-02 4:57 
GeneralRe: Class static variables initalization problem during program run Pin
Joaquín M López Muñoz23-Apr-02 5:50
Joaquín M López Muñoz23-Apr-02 5:50 
Static class data behave as global data in this respect. So, when the control hits main, these data must have been initialized. Possible reasons for the observed fiasco:
  1. These static data are placed in a static library but the corresponding compilation unit is stripped out by the linker (because no symbol from that unit is explicitly linked from the program.)
  2. The data depends on initialization on other static data in a different .cpp. As C++ does not guarantee any special order in the initialization of static data in each compilation unit, it could be that the dependent static data get initialized before the depended on data, thus resulting in strange results.


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Class static variables initalization problem during program run Pin
23-Apr-02 6:51
suss23-Apr-02 6:51 
GeneralRe: Class static variables initalization problem during program run Pin
Joaquín M López Muñoz23-Apr-02 8:52
Joaquín M López Muñoz23-Apr-02 8:52 
GeneralRe: Class static variables initalization problem during program run Pin
Tim Smith23-Apr-02 9:05
Tim Smith23-Apr-02 9:05 
GeneralRe: Class static variables initalization problem during program run Pin
Joaquín M López Muñoz23-Apr-02 9:19
Joaquín M López Muñoz23-Apr-02 9:19 
GeneralRe: Class static variables initalization problem during program run Pin
Tim Smith23-Apr-02 10:12
Tim Smith23-Apr-02 10:12 
Generalcommand line parameters Pin
(Steven Hicks)n+123-Apr-02 4:58
(Steven Hicks)n+123-Apr-02 4:58 
GeneralRe: command line parameters Pin
Michael P Butler23-Apr-02 11:31
Michael P Butler23-Apr-02 11:31 
GeneralSystem Stress Test Tool Pin
Giles23-Apr-02 4:54
Giles23-Apr-02 4:54 
GeneralRe: System Stress Test Tool Pin
Ravi Bhavnani23-Apr-02 5:00
professionalRavi Bhavnani23-Apr-02 5:00 
GeneralRe: System Stress Test Tool Pin
Giles23-Apr-02 5:05
Giles23-Apr-02 5:05 
GeneralRe: System Stress Test Tool Pin
Mike Nordell23-Apr-02 10:04
Mike Nordell23-Apr-02 10:04 
GeneralRe: System Stress Test Tool Pin
Giles23-Apr-02 10:14
Giles23-Apr-02 10:14 
GeneralDeployment problem (Vc++ Runtime Library Error!)I'm Using VC .Net Pin
HenrikO23-Apr-02 4:48
HenrikO23-Apr-02 4:48 
GeneralRe: Deployment problem (Vc++ Runtime Library Error!) Pin
l a u r e n23-Apr-02 4:58
l a u r e n23-Apr-02 4:58 
GeneralRe: Deployment problem (Vc++ Runtime Library Error!) Pin
HenrikO23-Apr-02 5:28
HenrikO23-Apr-02 5:28 
GeneralRe: Deployment problem (Vc++ Runtime Library Error!) Pin
Mike Zinni23-Apr-02 5:04
Mike Zinni23-Apr-02 5:04 
GeneralRe: Deployment problem (Vc++ Runtime Library Error!) Pin
act_x23-Apr-02 5:23
act_x23-Apr-02 5:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.