Created attachment 182100 [details] Open the attached database file with macros enabled. Close it, open it again … Open the attached database with Macros enabled. There will be a procedure running through Tools → Customize → Events → View created. In this example there is no content in procedure, but with content its the same behavior. SUB Test 'no content END SUB Now close the database document but don't close LO. Reopen the database document. This error appears. com.sun.star.lang.DisposedException: Component is already disposed. at /home/buildslave/source/libo-core/dbaccess/source/core/inc/ModelImpl.hxx:471 Close the database document. Error appears again. Detected this buggy behavior with OpenSUSE 15.3 64bit rpm Linux and LO 7.4.0.3, also earlier 7.4.0-versions. Error won't appear in LO 7.3.5.2, so a regression.
(In reply to Robert Großkopf from comment #0) > > This error appears. > > com.sun.star.lang.DisposedException: Component is already disposed. at > /home/buildslave/source/libo-core/dbaccess/source/core/inc/ModelImpl.hxx:471 > It appears for me too but do not show the part "at /home/..." > Close the database document. Error appears again. When I close the error do not appear, only when opening Version: 7.4.0.3 (x64) / LibreOffice Community Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: es-ES (es_ES); UI: en-US Calc: CL Also can confirm that the error do not appear when tested with: Version: 7.2.5.2 (x64) / LibreOffice Community Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5 CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: es-ES (es_ES); UI: es-ES Calc: threaded
@jcsanz: You are right. Onls appears when opening the database. I had first tested with event "View is going to be closed". This event would happen while closing and the error would appear while closing.
No repro with Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 71c28942fbc7f36e5bcd46c5a6cdfbb3fcbcd6a0 CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3 Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US Calc: threaded
Tested again. Bug exists up to LO 7.4.3.2, but with current version there is no error any more. I will close this one as WORKSFORME.