Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clean up .NET resources
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01315414
Message ID:
01321854
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
Kind of a late response, but any assembly loaded into memory by an application including an EXE will never release completely unless you shut down the AppDomain or shut down the application.

This means effectively that the file stays loaded always, but related resources for objects get cleaned up by the garbage collector.

As a general rule - if a class implements IDisposable() it's a good idea to call .Dispose() explicitly from VFP code to ensure that objects are properly releasing additional and non-.NET resources.

Hope this helps,


+++ Rick ---

>Hello,
>
>I am using the NET Extender in VFP and have the following question:
>
>How can I clean up properly the resources when I use an assembly.
>
>For instance I have an assembly that has a class:
>
>lcAssembly = "XEngine.exe"
>lcClass = "xEngine.Form1"
>loNetObj = CLRNewObject(lcClass,lcAssembly)
>loNetObj.Show()
>
>now to close the form I issue:
>
>loNetObj.Close()
>
>But the XEngine.exe is still loaded somehow in memory. How can I clean up the resources?
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform