Page 1 of 1

Graphics Memory Problems

Posted: Fri Dec 06, 2024 2:59 pm
by Silvio.Falconi
I have a procedure where I display a colored pixel that flashes in position x,y. I need this to calibrate the lottery card. as you can see in this video

when the user moves the mouse over the get controls involved the lines are displayed or if the user selects a record in the xbrowse the pixel or the colored circle at the x,y positions is displayed

When instead the user moves the mouse over the folders or in the dialog I call the MyOverDlg(.f.) function to end the display of the graphics


Image

The problem is that the pixel remains in memory as you can see from this image.

Image

I discovered that the EXE is still in the computer's memory.



Image



How can I solve it?

Re: Graphics Memory Problems

Posted: Fri Dec 06, 2024 8:23 pm
by Antonio Linares
Dear Silvio,

Can you share its source code to test it ? The app may not be closing properly.

Re: Graphics Memory Problems

Posted: Mon Dec 09, 2024 8:52 am
by Silvio.Falconi
Antonio Linares wrote:Dear Silvio,

Can you share its source code to test it ? The app may not be closing properly.
I cannot share the code because I cannot create a Small test , I tried but it is not possible

Re: Graphics Memory Problems

Posted: Mon Dec 09, 2024 9:56 am
by Silvio.Falconi
as I wrote on mail perhaps I found the solution.

the problem in my opinion was that many timer sessions were created and then I couldn't remove them and the exe remained in the computer's memory because it was still working.

I checked the function where I create the timer and before to create I checked with

Code: Select all | Expand

IF oTmr <> NIL
            oTmr:End()
         ENDIF

and it seems run ok now , then maybe other errors will come out...:)

Image

Re: Graphics Memory Problems

Posted: Mon Dec 09, 2024 10:15 am
by Antonio Linares
very good! :-)