To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=98273





------- Additional comments from j...@openoffice.org Wed Jan 21 15:18:12 +0000 
2009 -------
The assemblies generated with climaker use the type assemblies from the GAC.
climaker has the -r (reference) option which can be passed a path to another
types library. For example, when building cli_oootypes (unoil) the the option is
passed with a path to cli_uretypes. The assembly is then loaded with
Assembly::LoadFrom. This function looks first into the GAC and will use the
newest version.

To check this one can add this code before and after the assembly is loaded. See
cli_ure/source/climaker/cli_maker_app.cxx, The assemblies passed with the -r
option are kept in "extra_assemblies.

 Assembly* assems[] = System::AppDomain::CurrentDomain->GetAssemblies();
 //List the assemblies in the current application domain.
System::Console::WriteLine( "List of assemblies loaded in current appdomain:" );
System::Collections::IEnumerator* myEnum = assems->GetEnumerator();
while ( myEnum->MoveNext() )
{
       Assembly* assem = __try_cast<Assembly*>(myEnum->Current);
       System::Console::WriteLine( assem->FullName );
}

Here is the output of the test:

List of assemblies loaded in current appdomain:
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
climaker, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
msvcm90, Version=9.0.21022.8, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
cli_oootypes, Version=1.0.1.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e

file:///z:/jl111/DEV300/wntmsci12.pro/bin.m38/cli_uretypes.dll

List of assemblies loaded in current appdomain:
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
climaker, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
msvcm90, Version=9.0.21022.8, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
cli_oootypes, Version=1.0.1.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e
cli_uretypes, Version=1.0.2.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e



---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@udk.openoffice.org
For additional commands, e-mail: issues-h...@udk.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to