Hello community,
in a normal case we use Create Object OLE to check whether a COM library is installed on the presentation server or not, e.g. like this:
"-Begin-----------------------------------------------------------------
"-Type-Pools----------------------------------------------------------
Type-Pools OLE2.
"-Variables-----------------------------------------------------------
Data Test Type OLE2_OBJECT.
Create Object Test 'ProgID'.
If sy-subrc = 0 And Test-HANDLE > 0 And Test-TYPE = 'OLE2'.
Free Object Test.
EndIf.
"-End-------------------------------------------------------------------
But in a few cases this procedure creates a dump. In the most cases it works like expected. All dumps are on presentation servers without the registered programm ID. But in the most cases it works on presentation servers without the registered programm ID.
Does anyone knowthis behaviorandhave asolution to avoid thedumps?
Or is it possible to check the existence of a class on another way as the instantiation?
An equal behavior is described here.
Thanks for hints.
Cheers
Stefan