Reputation: 1
I am facing "Access Violation Error" in visual studio 2008 but same code works fine in VS2002. I have verified the project settings both are same. I think there is difference in handling of the pointers in VS2008. I think i am missing something.
Can anyone help?
Sample code given below.
schemap = (typ_ty_schema *)((dbs_ty_obj *)obj)->f_schema;
after executing this line values are not getting assigned to schemap however i can see values in ((dbs_ty_obj *)obj)->f_schema
Please help.
Niks
Upvotes: 0
Views: 112
Reputation: 52539
I don't think this has anything to do with pointers being handled different. This is probably just a bug in your code which for some reason (different code generation, memory allocation etc...) was hidden in the code generated by VS2002.
Upvotes: 4