From c2d193b8e78aeca08c8c49baa83cc40b9951b833 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 4 Jan 2003 04:36:49 +0000 Subject: "" svn path=/trunk/; revision=320 --- externals/grill/flext/source/flext.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'externals/grill/flext/source/flext.cpp') diff --git a/externals/grill/flext/source/flext.cpp b/externals/grill/flext/source/flext.cpp index c13d8732..e54ad339 100644 --- a/externals/grill/flext/source/flext.cpp +++ b/externals/grill/flext/source/flext.cpp @@ -27,8 +27,6 @@ flext_base::flext_base(): insigs(0),outsigs(0), outlets(NULL),outattr(NULL), distmsgs(false), - methhead(new itemarr),attrhead(new itemarr), - clmethhead(ClMeths(thisClassId())),clattrhead(ClAttrs(thisClassId())), inlets(NULL) #if FLEXT_SYS == FLEXT_SYS_MAX ,indesc(NULL),outdesc(NULL) @@ -36,6 +34,18 @@ flext_base::flext_base(): { LOG1("%s - flext logging is on",thisName()); + t_classid clid = thisClassId(); + clmethhead = ClMeths(clid); + methhead = new itemarr; + + if(procattr) { + // initialize when attribute processing is enabled + attrhead = new itemarr; + clattrhead = ClAttrs(clid); + } + else + attrhead = clattrhead = NULL; + // message queue ticker qhead = qtail = NULL; qclk = (t_qelem *)(qelem_new(this,(t_method)QTick)); -- cgit v1.2.1