Application.ResetRanorexCore

Class library usage, coding and language questions.
jabelshauser
Posts: 55
Joined: Thu Aug 23, 2007 12:00 pm

Application.ResetRanorexCore

Post by jabelshauser » Tue Apr 29, 2014 10:14 am

Is there a analogy to the Application.ResetRanorexCore in the actual version ? (5.0.2)

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Application.ResetRanorexCore

Post by Support Team » Tue Apr 29, 2014 12:23 pm

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
.
Image

jabelshauser
Posts: 55
Joined: Thu Aug 23, 2007 12:00 pm

Re: Application.ResetRanorexCore

Post by jabelshauser » Tue Apr 29, 2014 12:47 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Application.ResetRanorexCore

Post by Support Team » Fri May 02, 2014 12:10 pm

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
.
Image