How long do these passing methods last? I just want to make sure that I have these lifespans correct. ByVal variables lasts for the entire program time, while ByRef variables last until the procedure ends. Am I correct?
Hi Guys,
I'm creating a little GUI for touch screens and so I'm using a lot of rectangles as "touchzones" (using the rectangle.contains(e.location) in mouse click events) but there are some things I'd like to do on lots of rectangles at the same time. I'd like to copy the rectangles into an...
From what I understand, this is how it works:
ByRef (a.k.a. By Reference) points to where the object is in the memory. Any changes made to the object sent ByRef should change the values of the original object
ByVal (a.k.a. By Value) points to a copy of the object. Any changes made to the object...
Hello.
Since my Project has reached some size I've started using the Garbage Collection and trying to find best ways to keep the useage of memory and cpu small. However, I was trying out how ByVal and ByRef are behaving with the garbage collection and found some pretty strange behavior (code...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.