class member have no valid adress!!please help!
-
hy, i have written an exe and a dll. the exe uses a class in the dll. in this dll- class i have some CString members. now, when i debug i see the following: in the constructor, everything is fine, all strings got initialized and have valid adresses. now in a subsequent functioncall, every CString Member has the adress 0x000000 except the one who was first declared in the class. i have no idea, what the problem could be! has it something todo with the dll? please help me!! thanx
-
hy, i have written an exe and a dll. the exe uses a class in the dll. in this dll- class i have some CString members. now, when i debug i see the following: in the constructor, everything is fine, all strings got initialized and have valid adresses. now in a subsequent functioncall, every CString Member has the adress 0x000000 except the one who was first declared in the class. i have no idea, what the problem could be! has it something todo with the dll? please help me!! thanx
-
hy, sorry, i do not understand your answer at all, could you please explain? thanx, greetz
-
hy, sorry, i do not understand your answer at all, could you please explain? thanx, greetz
-
hy, i dont think the problem is the debugger,or how could this be? what am i doing wrong? im working with visual c++ since 2 years now, and never experienced a similar problem. how can i solve the problem?
-
hy, i dont think the problem is the debugger,or how could this be? what am i doing wrong? im working with visual c++ since 2 years now, and never experienced a similar problem. how can i solve the problem?
Probably you are doing something like this: (normally more complicated, but the same thing)
CString *p = NULL;
p->Trim();Calling a method on a NULL pointer may cause the problem you're describing. Trying to make bits uncopyable is like trying to make water not wet. -- Bruce Schneier By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
-
Probably you are doing something like this: (normally more complicated, but the same thing)
CString *p = NULL;
p->Trim();Calling a method on a NULL pointer may cause the problem you're describing. Trying to make bits uncopyable is like trying to make water not wet. -- Bruce Schneier By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
I think that you don't get the point of what he is asking. I think that he wants to know WHY the subsquents aren't initialized. You are only showing the effect of it, but I think he is AAAARGH-ing about the not-being-constructed of the CString-members in his class. And btw, I have no idea what he could be doing wrong. This is really weird... a member var should be constructed if it shouldn't be a pointer but a physical instance...