Question about plugin data persistence (1 Viewer)

Baboonanza

Retired Team Member
  • Premium Supporter
  • February 5, 2010
    143
    57
    North London
    Home Country
    United Kingdom United Kingdom
    Hi,

    I'm writing a disc ripping plugin and have a question about how the GUIWindow is treated after the user leaves/closes it. Obviously I want the user to be able to leave the window during the ripping but I need to store state information and the external Process object in order to control the ripping.

    So, will the GUIWindow derived class ever be destroyed once the user has left (even if not immediately)? Is there some way to prevent this if a rip is in progress? Do I need to use a static class to store state information after the user leaves the window?

    Thanks in advance,
    James
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Derived class will not be destroyed so all your background workers are safe :)

    Keep in mind that OnPageDestroy when leaving is called, OnPageLoad is called when entering the window..
     

    Users who are viewing this thread

    Top Bottom