j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
I retry sending since it failed...
---------- Message transmis ---------- Subject: Re: Help with FFI - another try Date: Vendredi 21 Juillet 2006 22:49 From: nicolas cellier ncellier@ifrance.com To: The general-purpose Squeak developers list squeak-dev@lists.squeakfoundation.org
Le Vendredi 21 Juillet 2006 13:15, Eugene Beschastnov a écrit :
I digged a little into C-code and found that hbeStream is pointer to some LAME data (some global flags are stored there). I suppose that root of problem is that this data is destroyed or moved between apicalls. Is there any way to avoid this?
One solution is to allocate this data on external heap. (See ExternalAddress class>>allocate:) instead of using a ByteArray in Smalltalk memory.
Of course, you'll have to free data yourself as in C. Maybe the trick explained at http://bugs.impara.de/view.php?id=3692 that should be in latest image can help...
Nicolas
-------------------------------------------------------
squeak-dev@lists.squeakfoundation.org