1. Aleš Vojáček
  2. PowerBuilder
  3. Thursday, 20 October 2022 08:16 AM UTC

Hi all,

I have imported nvo from .NET dll.

When I run application with imported nvo, after I close application and destroy of that nvo is called the dll is still locked and cannot be overloaded.

Is there any propper way to destroy such a nvo to unload .NET dll?

The nvo was created with Encapsulate a DotNetAssembly object in each DotNetObject object checked.

 

Thank you Ales 

Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 20 October 2022 09:12 AM UTC
  2. PowerBuilder
  3. # 1

Hi.

You should mention the exact version of PB you are using.

You are trying to run the application from executable or from IDE? If yes, probable the dll will be unlocked when you close PB. The was a ticket for that in support platform and a fix in PB 2021 1509 (Bug Fixes | Appeon) and PB 2019 2779 (Bug Fixes | Appeon).

Andreas.

Comment
  1. Aleš Vojáček
  2. Thursday, 20 October 2022 10:40 AM UTC
Ok thank you.

I have one more question.

Are there any propper ways to cleanup processing in .NET part of application? I tied to call cleanup function in descructor event of DotNETObject, but when PB application ends with HALT CLOSE the destructor event seems to be not called.
  1. Helpful
  1. Aleš Vojáček
  2. Thursday, 20 October 2022 10:45 AM UTC
  1. Helpful 1
  1. Miguel Leeuwe
  2. Thursday, 20 October 2022 22:20 PM UTC
Hi, that's a private ticket so no use for anyone here to post the link :)
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.