Process remains in memory.
Process remains in memory.
If the program aborts with an error, I closed it via the (X) in Windows (system close) or just exit the application in a normal way the process image remains in memory. Is this normal behavior ? Thank you.
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Process remains in memory.
No, try the following sample:
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd
RETURN NIL
Enrico:
With your sample program the image is discarded from memory as soon as the program exits. Now, I define a Window, Menu and the image remains in memory. Basically it's a indexing program. You select the file and it recreates all indexes. No external resources, DLLs, etc. Pretty simple program. Thank you for your help.
With your sample program the image is discarded from memory as soon as the program exits. Now, I define a Window, Menu and the image remains in memory. Basically it's a indexing program. You select the file and it recreates all indexes. No external resources, DLLs, etc. Pretty simple program. Thank you for your help.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
The xFiles (ha,ha,ha)
Antonio: thank you for your support. Doing some test before sending you the sample code, I found out that if I got a LOCAL variable called cString the program image remains in memory. I dropped that variable and the images left memory when exiting or closing the program.
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: The xFiles (ha,ha,ha)
???
Try the following sample:
EMG
Try the following sample:
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd
LOCAL cString
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd
RETURN NIL
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: