Attribute error

Hi all,
I’m trying to create a new block by C++ coding and the coding part seems
to be alright! Infact my new block appears in GNU radio, but when I
connect and other blocks and run the GRC flowgraph, an error comes
namely : "ATTRIBUTE ERROR’. Couls some one tell me what the reason might
be!
Please