Hello demo application throws exception on dws.free

Issue #166 resolved
Former user created an issue

The Hello demo applications throws an exception on dws.free: EdwsActivePrograms: TDelphiWebScript instance "" still has 1 active IdwsProgram instance(s)

Is this a general problem?

Best regards

Comments (2)

  1. Eric Grange repo owner

    This is a warning that was added sometime ago, to avoid issues arising from a compiled program being alive after the TDelphiWebScript instance that was used to compile them was freed.
    As TDelphiWebScript is a component, it is susceptible to be freed before the automatically managed programs (interface-based), which is an issue the demo had (innocuous in the case of the demo as the program was not used, but potentially problematic in more complex usages scenarios)

  2. Log in to comment