You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know where my problem is !
When I use robotgo.FindBitmap(bitmap, nil, 0.1) ,my app will crash after few minutes. https://github.com/go-vgo/robotgo/blob/master/robotgo.go#L980
I found if the arg is not zero,the sbit will not FreeBitmap().
So I add a condition to it. In robotgo.go Before
if len(args) <= 0 {
FreeBitmap(sbit)
}
After
if len(args) <= 0 {
FreeBitmap(sbit)
} else if len(args) > 0 && args[0] == nil {
FreeBitmap(sbit)
}
Description
program run on remote desktop
when switch to remote window program will panic
The text was updated successfully, but these errors were encountered: