Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7a852297
Kaydet (Commit)
7a852297
authored
Kas 13, 2002
tarafından
Daniel Boelzle
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#104143# throwing lang::DisposedException after dispose()
üst
e3eefe57
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
6 deletions
+32
-6
cppumaker.mk
stoc/source/cppumaker.mk
+11
-2
servicemanager.cxx
stoc/source/servicemanager/servicemanager.cxx
+0
-0
makefile.mk
stoc/test/makefile.mk
+3
-3
testsmgr2.cxx
stoc/test/testsmgr2.cxx
+18
-1
No files found.
stoc/source/cppumaker.mk
Dosyayı görüntüle @
7a852297
...
...
@@ -2,9 +2,9 @@
#
# $RCSfile: cppumaker.mk,v $
#
# $Revision: 1.
5
$
# $Revision: 1.
6
$
#
# last change: $Author:
pluby $ $Date: 2001-02-12 20:19:4
1 $
# last change: $Author:
dbo $ $Date: 2002-11-13 11:00:2
1 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
...
...
@@ -74,3 +74,12 @@ CPPUMAKERFLAGS = -L
UNOUCROUT= $(OUT)$/inc$/light
INCPRE+= $(OUT)$/inc$/light
.ENDIF
.IF "$(debug)" != ""
# MSVC++: no inlining
.IF "$(COM)" == "MSC"
CFLAGS += -Ob0
.ENDIF
.ENDIF
stoc/source/servicemanager/servicemanager.cxx
Dosyayı görüntüle @
7a852297
This diff is collapsed.
Click to expand it.
stoc/test/makefile.mk
Dosyayı görüntüle @
7a852297
...
...
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.1
8
$
# $Revision: 1.1
9
$
#
# last change: $Author: dbo $ $Date: 2002-
08-22 14:42:22
$
# last change: $Author: dbo $ $Date: 2002-
11-13 11:00:23
$
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
...
...
@@ -245,7 +245,7 @@ MY_DLLPREFIX=
MY_DLLPOSTFIX
=
.so
MY_DLLPREFIX
=
lib
.ENDIF
TESTCOREFL
:=
ModuleC
;
ModuleC.XInterfaceA
;
ModuleC.XInterfaceB
;
ModuleA.XInterface1
;
com.sun.star.reflection.XIdlReflection
;
com.sun.star.reflection.XIdlField
;
com.sun.star.reflection.XIdlArray
;
com.sun.star.reflection.XIdlMethod
;
com.sun.star.reflection.XIdlClass
;
com.sun.star.beans.XPropertySet
;
com.sun.star.lang.XComponent
;
com.sun.star.container.XHierarchicalNameAccess
;
com.sun.star.reflection.XIdlField2
TESTCOREFL
:=
ModuleC
;
ModuleC.XInterfaceA
;
ModuleC.XInterfaceB
;
ModuleA.XInterface1
;
com.sun.star.reflection.XIdlReflection
;
com.sun.star.reflection.XIdlField
;
com.sun.star.reflection.XIdlArray
;
com.sun.star.reflection.XIdlMethod
;
com.sun.star.reflection.XIdlClass
;
com.sun.star.beans.XPropertySet
;
com.sun.star.lang.XComponent
;
com.sun.star.container.XHierarchicalNameAccess
;
com.sun.star.reflection.XIdlField2
;
com.sun.star.lang.DisposedException
TESTIADAPTER
:=
com.sun.star.beans.XIntrospection
;
com.sun.star.beans.MethodConcept
;
com.sun.star.beans.XExactName
;
com.sun.star.lang.XTypeProvider
;
com.sun.star.uno.XAggregation
;
com.sun.star.script.XInvocationAdapterFactory
;
com.sun.star.script.XInvocationAdapterFactory2
;
com.sun.star.script.XInvocation
;
com.sun.star.lang.XMultiServiceFactory
;
com.sun.star.registry.XSimpleRegistry
;
com.sun.star.lang.XInitialization
;
test.XLanguageBindingTest
TESTINTROSP
:=
ModuleA
;
ModuleA.XIntroTest
;
com.sun.star.beans.XPropertySet
;
com.sun.star.container.XIndexAccess
;
com.sun.star.container.XNameAccess
;
com.sun.star.beans.PropertyAttribute
;
com.sun.star.beans.PropertyConcept
TESTCONV
:=
com.sun.star.script.XTypeConverter
...
...
stoc/test/testsmgr2.cxx
Dosyayı görüntüle @
7a852297
...
...
@@ -6,6 +6,8 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/registry/XSimpleRegistry.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/XComponent.hpp>
using
namespace
::
rtl
;
using
namespace
::
cppu
;
...
...
@@ -58,12 +60,27 @@ int main()
{
printf
(
"test passed
\n
"
);
}
Reference
<
XComponent
>
xComp
(
rComp
,
UNO_QUERY
);
xComp
->
dispose
();
try
{
xCtAccess
->
createContentEnumeration
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"blabla"
)
)
);
}
catch
(
DisposedException
&
)
{
printf
(
"already disposed results in DisposedException: ok.
\n
"
);
return
0
;
}
fprintf
(
stderr
,
"missing DisposedException!
\n
"
);
return
1
;
}
catch
(
Exception
&
e
)
{
OString
o
=
OUStringToOString
(
e
.
Message
,
RTL_TEXTENCODING_ASCII_US
);
printf
(
"%s
\n
"
,
o
.
getStr
()
);
OSL_ASSERT
(
0
);
return
1
;
}
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment