Re: Resolving Pointers

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I don't use threads, but will bear that one in mind.

RBS


"Tom Shelton" <tom_shelton@xxxxxxxxxxxxxxxxxx> wrote in message news:%23$RILnfPKHA.1796@xxxxxxxxxxxxxxxxxxxxxxx
On 2009-09-25, RB Smissaert <bartsmissaert@xxxxxxxxxxxxxxxx> wrote:
Just came across this interesting looking code:
http://www.mvps.org/vbvision/_samples/Resolving_Pointers_Demo.zip
This project shows how you can resolve a 'dumb' pointer to an object
obtained via the hidden VB ObjPtr() function back into a fully referenced
object reference on which you can call methods and set properties. The
first time I saw this concept was in Bruce McKinney's book "Hardcore Visual
Basic" so Mr. Mckinney deserves any credit for the idea behind the demo.

And wonder if there is any good use for this. I know this is finding a
problem for a solution, but I have a feeling, that
this might have some practical use.

In the distant past, I've used this technique for sharing an object instance
across multiple threads...

--
Tom Shelton

.



Relevant Pages

  • Re: Resolving Pointers
    ... This project shows how you can resolve a 'dumb' pointer to an object ... obtained via the hidden VB ObjPtr() function back into a fully referenced ...
    (microsoft.public.vb.general.discussion)
  • Re: Dns.GetHostEntry throws SocketException in WM2005, OK in PPC2003
    ... serious unable to resolve address exception. ... as I'm able to use PocketPing to verify that the connection is ... pointer address in attempting to use a pointer argument in a call ... an invalid pointer value, or if the length of the buffer is too small. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Why doesnt .NET framework has linked list and treemap?
    ... Last point: enumeration. ... I need to resolve one pointer per object (the one pointing to ... the object), and due to the memory layout of the array, the number of cache ...
    (microsoft.public.dotnet.framework)
  • Re: Einstein wins 3 more crackpot points
    ... >>your mind to study something before declaring yourself an ... You don't need GR to resolve the Twin Paradox. ...
    (sci.physics)
  • Re: Top Ten Reasons Why American Women Suck
    ... mind. ... Lots of women are beaten berated told that they are stupid, dumb, ... women are even killed because of their inferior gender. ... dumb, sexually compromised, with minds that are clumsy, weak. ...
    (soc.men)