/CLR versus No Runtime Support

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?
 
C

Carl Daniel [VC++ MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top