Graphics Memory Problems

Post Reply
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Graphics Memory Problems

Post 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?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Antonio Linares
Site Admin
Posts: 42273
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Graphics Memory Problems

Post by Antonio Linares »

Dear Silvio,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Re: Graphics Memory Problems

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Re: Graphics Memory Problems

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Antonio Linares
Site Admin
Posts: 42273
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Graphics Memory Problems

Post by Antonio Linares »

very good! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply