develooper Front page | perl.perl6.users | Postings from November 2022

Pointer to bug question

Thread Next
ToddAndMargo via perl6-users
November 24, 2022 02:00
Pointer to bug question
Message ID:
Hi All,

This is driving me nuts!

Native Call question. I have a Pointer ($ppSessionInf).

It points to a structure of $pCount bytes.

How do I read that into a Buf of $ my DWORD   $pCount       = 0;  bytes?

    my Pointer $ppSessionInf =;
    my DWORD   $pCount       = 32 times something bytes long;
    my BYTES  $Sessions      = CArray[BYTE].new( 0xFF xx $pCount );

How do I load what $ppSessionInf points to into $Sessions

    $Sessions = $ppSessionInf.deref;

Which obviously does not work.

     "Internal error: unhandled target type"


Many thanks,

Computers are like air conditioners.
They malfunction when you open windows

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About