/CLR versus No Runtime Support

  • Thread starter Thread starter Creativ
  • Start date Start date
C

Creativ

Hi,

I'm moving code from VC 6.0 to VC2005. I noticed that some code I can
build and run in VC 2005 with CLR support. But once I put them into a
project which support CLR, I got error "AccessViolationException"
during run-time.

Could anyone help with that? Why is there such a difference?
 
Creativ said:
Hi,

I'm moving code from VC 6.0 to VC2005. I noticed that some code I can
build and run in VC 2005 with CLR support. But once I put them into a
project which support CLR, I got error "AccessViolationException"
during run-time.

Could anyone help with that? Why is there such a difference?

Most likely, because your code has undefined behavior which gave the
appearance of working under VC6. You're going to have to narrow down the
code that's causing the AV to figure out what's going on, or for anyone to
give you more than very generic advice.

-cd
 
Back
Top