Error when forwarding accepted meeting invite

I have a modified mail template that creates some special invitations. When an invite has been accepted into the calendar, if the invitee tries to forward it, he now gets an error message “Illegal parenthesized reference:xxxxx” (where xxxx is the name of a component inside my own deveoped library). It is impossible to find where this is happening, because debug mode skips straight into the error after finishing QueryOpen. What happens between QueryOpen and PostOpen?

Any help will help!

Subject: Try this

Mark the component’s hidewhen to hide when copied to the clipboard. That should hide the component when it is forwarded.

Subject: That works! thanks a million.