Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: Memrory fault with byref ?

Hi velsto,

Thanks for this answer, I have also this function in VB, but the inconvenient is that it returns X, Y as double when pixels are integer values (system.drawing.point). So you can't pass integer values with strict "on". That's why I used this way. The strange thing is that passing "byref" a point value like shape.Point(0) generates an AccesViolationException when function returns. And this doesn't comes from the ProjtoPixel called in the function as I tested without it.

By the way, I suggest that this function should returns Integer as there are no double for pixel values.

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>