Page 1 of 1

Application.ResetRanorexCore

Posted: Tue Apr 29, 2014 10:14 am
by jabelshauser
Is there a analogy to the Application.ResetRanorexCore in the actual version ? (5.0.2)

Re: Application.ResetRanorexCore

Posted: Tue Apr 29, 2014 12:23 pm
by Support Team
No, there is no such method anymore since Ranorex 2.0.

The Ranorex 1.5 Application.ResetRanorexCore method was actually a workaround for coping with weird memory issues in the unmanaged part of the Ranorex 1.X Core.
As with Ranorex 2.0 the unmanaged core was completely rewritten using managed .NET code, this method would not make sense any more.

Do you just ask because you are switching from Ranorex 1.5 to 5.0? Or would you need such a method for anything else?

Regards,
Alex
Ranorex Team

Re: Application.ResetRanorexCore

Posted: Tue Apr 29, 2014 12:47 pm
by jabelshauser
We have trouble with our SUT-Side proprietary Assembly-Resolving. We have to load assemblies via Assembly.LoadFrom() (LoadFrom assembly context). Ranorex seems to also load assemblies in the SUT (in the LoadNeither assembly context) that it had loaded in the test side during previous tests.

A possible solution could be make Ranorex forget all assemblies that it loaded in a previous test.

Thanks in advance
Jörg Abelshauser

Re: Application.ResetRanorexCore

Posted: Fri May 02, 2014 12:10 pm
by Support Team
Hello Jörg,

Unfortunately I am afraid that I don't understand your issue correctly.
In Ranorex 1.5, the method "Application.ResetRanorexCore" only reloads the core dlls of Ranorex.
This method does not reload managed DLLs or DLLs from the application under test.
Can you please explain in greater detail what issue is or what exactly you want to do?

Regards,
Bernhard