Hello :hello:,
I'm experiencing something on my current project that already happened to me before and that is very frustrating.
Most of the variables I use (declared in the class/private part of the .h file, initialized in ClbkSetClassCaps) seem to be completely out of control. Some keep steady sometimes, but it is quite rare.
I'm using VC++2008, and the project was going rather smoothly, and then the hell got loose.
Here are the variables I declared, do you see anything wrong in this ? I used bool variables for the "do once" vars, but it seems that bool variables were the first affected, so I switched to int.
And again, yes those variables are initialized.
What is really weird, is that it is not the first time it happens to me.
Also I have a problem with a TV tuner card that is not correctly working (already had this several months ago), and Windows ran a checkdisk on booting this morning (the same). All those events happened in less than 2 days, so it's hard to believe in coincidences...
I'm using Windows XP Pro SP3, which I re-installed a month ago, so it can't be OS-related...
Really, I don't get what is going wrong... Could I have somehow triggered a dangerous memory leak, and isn't VC++2008 supposed to keep safe from that ? :idk::idk:
I'm experiencing something on my current project that already happened to me before and that is very frustrating.
Most of the variables I use (declared in the class/private part of the .h file, initialized in ClbkSetClassCaps) seem to be completely out of control. Some keep steady sometimes, but it is quite rare.
I'm using VC++2008, and the project was going rather smoothly, and then the hell got loose.
Here are the variables I declared, do you see anything wrong in this ? I used bool variables for the "do once" vars, but it seems that bool variables were the first affected, so I switched to int.
Code:
private:
int done01, done02, done03, done04, done05; // those are "do once" variables
int Shadow_i;
int lights;
double pVmem, yVmem, rVmem;
double T0, T1;
double MET, MET0;
double BatteryChrg;
double SPup_proc;
double SPdn_proc;
double SPle_proc;
double SPri_proc;
double ant_proc;
UINT anim_SPup;
UINT anim_SPdn;
UINT anim_SPle;
UINT anim_SPri;
UINT anim_ant;
char AntennaStatus[64];
char SolarStatus[64];
char ChrgStatus[64];
char LightsStatus[64];
SpotLight *docking_light;
};
What is really weird, is that it is not the first time it happens to me.
Also I have a problem with a TV tuner card that is not correctly working (already had this several months ago), and Windows ran a checkdisk on booting this morning (the same). All those events happened in less than 2 days, so it's hard to believe in coincidences...
I'm using Windows XP Pro SP3, which I re-installed a month ago, so it can't be OS-related...
Really, I don't get what is going wrong... Could I have somehow triggered a dangerous memory leak, and isn't VC++2008 supposed to keep safe from that ? :idk::idk: