Re: [edk2-devel] EmulatorPkg does not unload DLL after exit

2019-08-21 Thread Michael D Kinney
@edk2.groups.io; Kinney, Michael D ; af...@apple.com Subject: RE: [edk2-devel] EmulatorPkg does not unload DLL after exit Mike – Ok, it is bug 2104. From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> mailto:devel@edk2.groups.io>> On Behalf Of Michael D Kinney Sent: Wednesda

Re: [edk2-devel] EmulatorPkg does not unload DLL after exit

2019-08-21 Thread Tim Lewis
Mike – Ok, it is bug 2104. From: devel@edk2.groups.io On Behalf Of Michael D Kinney Sent: Wednesday, August 21, 2019 3:08 PM To: devel@edk2.groups.io; af...@apple.com; tim.le...@insyde.com; Kinney, Michael D Subject: Re: [edk2-devel] EmulatorPkg does not unload DLL after exit Tim

Re: [edk2-devel] EmulatorPkg does not unload DLL after exit

2019-08-21 Thread Michael D Kinney
2:45 PM To: devel@edk2.groups.io; tim.le...@insyde.com Subject: Re: [edk2-devel] EmulatorPkg does not unload DLL after exit Tim, Sounds like you are on to something The Unix side [1] does a dlclose() to undo a dlsym(). I seem to remember this code flow is very very old, I wonder if it is

Re: [edk2-devel] EmulatorPkg does not unload DLL after exit

2019-08-21 Thread Andrew Fish via Groups.Io
Tim, Sounds like you are on to something The Unix side [1] does a dlclose() to undo a dlsym(). I seem to remember this code flow is very very old, I wonder if it is possible to do better? For lldb (Xcode) I skipped the LoadLibraryEx()/dlsym() action and wrote a debugger script to load sym

[edk2-devel] EmulatorPkg does not unload DLL after exit

2019-08-21 Thread Tim Lewis
When running a shell app twice, I ran into an interesting problem: global variables that had initializers were not initialized to the defaults specified in the source. Running the same shell app under the old NT32 seems to work. It turns out that the shell app was not being reloaded, but rather