Actually, never mind! I think I have a work around even without Reference. I made my CalcAddinThr a pointer, so it is independent of lifetime of CalcAddimThr_impl . Seems to work through button as well.
I think you might have been refereeing to the object created in Basic macro that goes out of scope. Thanks again for taking time to help out on this. Neeraj _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice