Hi I get an access violation error. It is a run time error; the program compiled bug free. The program even runs .Its just when iam returning value to the function Iam getting that error at runtime ie Access violation reading location 0x000000000001 Dont know whats the problem. Any help will help me to go forward