I'm having a problem with my customers who use Windows 7. The Ribbon Bar is getting black (look the image bellow) do youknow why ?


Possibly a memory leak. I have seen things like this before.
If you exit the program, then reload it, does the problem go away?
James
Yes, you are right!
However, it's happening only with Windows 7 users. What could I do to prevent this?
Vilian,
The way you fix it is to find all unreleased objects and end them. Use the method the Antonio provided a link to.
I don't know why it is only happening on Windows 7. Maybe those pc's have less memory, or there is a bug in Win 7 itself. Either way you still need to end all the resources.
Thank you James,
I'm testing...
SetResDebug( .T. )
....
My Code
.....
FErase( "chekres.txt" )
CheckRes()
WinExec( "notepad checkres.txt" )30/08/2018 09:45:51: C:\VFATEC\SFPDES\SFP.EXE -- ===================================================================================Vilian,
Well that is a good sign. However, you can't just open the app, then close it to find resource leaks (if that is what you did). You have to give the software a real-world workout, trying all the screens and functions to really see if there is an issue. Best would be if you can run it under Windows 7 and get the toolbar to turn black--then you know you have done enough to find the leak.
James
James,
I only closed the app after ribbon bar started to get black.
I am away from my computer right now. When I get back I have a few things I want to look up. I'll let you know.
#include "fivewin.ch"
Function Main()
local oDlg, oFont
setResDebug(.t.)
ferase("checkres.txt")
define font oFont name "Arial" size 0,-10
define dialog oDlg
activate dialog oDlg
//oFont:end() // don't destroy oFont for test
checkres()
return nilIndeed, the first thing is to use the technique indicated previously by Antonio
In addition, you can use this tool
James,
I really have so much care with resources and good practises, as a result checkres() is returning an empty string. I will try the tool recommend by Cnavarro.
Vilian,
Any updates? Did you find a solution?
Hi James,
Nothing yet. Checkres() Always is returning na empty string, so by this way i didn't find a solution.