Click here to Skip to main content
15,891,868 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So How to initialise and make them lose there value.
need help
Posted
Updated 29-Jun-11 18:07pm
v3

Try running your app under the debugger and put a breakpoint on every place the variable is changed.

You might also want to use google to research the nature of static variables. Here's a MSDN page about it.

http://msdn.microsoft.com/en-us/library/79b3xss3(v=vs.80).aspx[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 30-Jun-11 17:54pm    
I think the problem is just a wrong concept.
Please see my answer.
--SA
There is no such concept as "uninitialize", "loose value", or "erase". Just assign a new value. By the way, this is a common idea in all programming.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900