Hi I have set up a localconnection comm betwean c++ and flash. I'm abble to send text boths ways no torubles. I want to send some data and I think this is limited? I changed the message length from one byte to the size of my data and I get acces violatoins. Is there a size limit?
memSize = sizeof( get.plane_addr);
//memSize = (int)malloc( get.res.w * get.res.h * 3 * sizeof(char));
The data here is a bit Image that i'd like to send to flash. Is this even posible.
The header is 16 bytes,
The message can be up to 40Ko,
The listeners block starts at 40Ko+16 = 40976 bytes,
To add a listener, simply append its name in the listeners list (null terminated strings)
So I guess that is part of the issue. I'm guessing I can't just send a "pointer" to flash as it does not reallt know what a pointer is huh?
with as2, you'll probably need to convert your bitmap to a string and reassemble that string into a bitmap in flash.
as3 has a bytearray class that would allow lower level handling of your bitmap.
My issue is on the C++ side though? Apperently I can not send more the 40k. I may try dumpping to a file and reading that file in flash, but I dont think I will get the frame rate I want.
i can't help you with the c++ side of your coding.