[Vala] trying to allocate 4294967295 bytes
- From: Sebastian Spaeth <sebastian sspaeth de>
- To: vala-list gnome org
- Subject: [Vala] trying to allocate 4294967295 bytes
- Date: Wed, 20 May 2009 17:44:36 +0200
I have created this evas.vapi function:
[CCode (array_length = false)]
[NoArrayLength]
public weak uchar[] data_get( bool for_writing );
(it is supposed to return a void* pointer which is still owned by the class)
which translates into:
data = (_tmp4_ = (_tmp3_ = evas_object_image_data_get
(self->priv->barchart, TRUE), (_tmp3_ == NULL) ? ((gpointer) _tmp3_) :
_vala_array_dup2 (_tmp3_, -1)), data_length1 = -1, data_size =
data_length1, _tmp4_);
which fails as:
GLib-ERROR **: /build/buildd/glib2.0-2.20.1/glib/gmem.c:136: failed to
allocate 4294967295 bytes
aborting...
Any clues as to what I am doing wrong?
The C function definition is:
void *evas_object_image_data_get(const Evas_Object *obj, Eina_Bool
for_writing)
spaetz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]