Hey, On Wed, Oct 26, 2011 at 2:56 PM, David Seikel <onef...@gmail.com> wrote: > I'm having an odd problem when trying to add an array of simple types > in an eet file. The attached file is the simple cut down version. The > real code is more complex, and needs the fuller versions of these > structures to be the way they are. > > I have a macro that is patterned after the other eet macros - > EET_DATA_DESCRIPTOR_ADD_BASIC_ARRAY. It's used twice in this example, > once for the Meter.prizes array, the second one for the Barrel.cards > array. If the Meter.prizes version is commented out, everything works > fine. Otherwise I get the attached valgrind report (with no eet file > existing when it starts). > > Likely there is something wrong with my macro. I think there should be > such a macro already, but apparently the received wisdom from raster is > that for something so simple, just use the > eet_data_descriptor_element_add() function directly. Even though that > functions docs say - > > "It is complex to use by hand and should be left to be used by the > macros, and thus is not documented." > > Um, yeah. Well, I tried. lol
Well we are adding this macro as people need and use it. First be aware I have no way to compile nor test your code nor what I will say. I think you need to divide the size of your structure by the size of the element so that the count do match. So you should have something like : sizeof(___ett.member) / sizeof(___ett.member[0]). Have fun :-) -- Cedric BAIL ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel