csripriya1
Programmer
Hi all,
I have some weird problems with passing objects as arguments. I have 2 functions which takes objects as arguments.I have some printing statement in the last line of both the functions. When I call these functions from main,This last printing statement gets executed and then the executables crashes off. I am compiling and running it in Visual C++.When I ask for the debug option it gives unhandled exception and access violation.I am wondering why this happens.
Can anyone help me with this.
Thanks
I have some weird problems with passing objects as arguments. I have 2 functions which takes objects as arguments.I have some printing statement in the last line of both the functions. When I call these functions from main,This last printing statement gets executed and then the executables crashes off. I am compiling and running it in Visual C++.When I ask for the debug option it gives unhandled exception and access violation.I am wondering why this happens.
Can anyone help me with this.
Thanks