, ^ , , GC ( , )
pin_ptr
,
RTPClient::RTPClient():
mClient(NULL)
{
CIsmaClient::Create(
&mClient,
NULL,
&AllocBuffer,
&GetDataPointer,
this);
}
1) - ( mClient .
, , ( GC). pinned, , Create ( , , ).
2) handle ( ), . ( wikipedia, ) ( ) .
, , - , ( , ). 'this' , , pin_ptr .
, () , , .
RTPClient::RTPClient():
mClient(NULL)
{
pin_ptr<CIsmaClient*> pinnedClient = &this->mClient;
CIsmaClient::Create(
pinnedClient,
NULL,
&AllocBuffer,
&GetDataPointer,
x );
}
, , .