My program got assertion on COleLinkingDoc::Register function, it asserted on this line:

ASSERT(m_dwRegister == 0);

It is called from my program:

pTemplate->InitialUpdateFrame( NewFrame, pDocument ) ;

What might have caused it?

Thanks in advance for any help.