Hi,
I have a top level form as my main windows and others windows as MDI Form. I face a problem that, my application is not released from memory everytime I exit my application even I have issue READ EVENT at the beginning and CLEAR EVENT, CLEAR ALL when exit.
I have try to issue CANCEL command after CLEAR EVENT. It works most of the time (90%). However, it may not work sometime.
What is the mistake I make here? How to solve?
Additional Info.
1. I have MSCOMM.ocx in my application. It cause my program Fatal Exception Error when I add the control into each of the relevant form (I have try add visually and programmatically). My solution is ADDOBJECT when INIT and REMOVEOBJECT when DESTROY. And It works.
2. I have a custom security class that manage the security of my application. It would like user to login when start my application and logout user if my application terminated. I NEWOBJECT security class and store the reference in mymainform.osecurity property. It create couples of session object when doing validation. I am sure that I DESTROY it once I finish the validation process. (Actually my application not released totally after I have this class.) I set mymainform.osecurity = .NULL. when DESTROY.
Could you what cause me to have this problem??
Thank you in advance
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...