Front page | perl.perl6.users |
Postings from November 2022
Pointer to bug question
Thread Next
From:
ToddAndMargo via perl6-users
Date:
November 24, 2022 02:00
Subject:
Pointer to bug question
Message ID:
44aa0b9f-8bf1-80e2-2ce6-07e1bba7a807@zoho.com
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 = Pointer.new();
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"
AAAA HHHH !!!!
Many thanks,
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thread Next
-
Pointer to bug question
by ToddAndMargo via perl6-users