silly question about initialisation

  • Hello,

    Silly question, do I have to do my initialisation for every WPViewPDF in my project or just is enough for every one ?

    WPViewPDF1.ViewerStart('wPDFView04plus.dll', 'my company', 'xxxx-xxxx-xxxx-xxx' , xxxxxxx );


    TKS

    Best regards.

    • Offizieller Beitrag

    One time is enough. But please make sure one instance of the viewer always remains (i.e. on main form) because the DLL must not be unloaded.

    This has to do with the windows subclassing code, once a class has been added to a program it cannot be removed anymore.