[Mono-dev] Marshalling (Segmentation fault)
Robert Jordan
robertj at gmx.net
Thu Oct 11 08:50:34 EDT 2007
Abir Bhattacharya wrote:
> Hi,
>
> Actually I have another 'C' File which allocates this buffer :
But your exposed function doesn't allocate any buffer:
>> fgrab_struct gbuffergrab() {
>> fgrab_struct fgbuffer;
>>
>> int index;
>>
>> SDL_mutexP(mutex);
>>
>> fgbuffer.bufferlength = bufferlength;
>> //fgbuffer.buffer = buffer;
>> for (index = 0; index < bufferlength; index++) {
>> fgbuffer.buffer[index] = buffer[index];
fgbuffer.buffer is NULL in this place.
Robert
More information about the Mono-devel-list
mailing list