Skip to content

Crashes without debug error when overwriting old snapshot. #3

Open

Description

@EliezerB123

Hi! So, the library looks very attractive, and I would love to use it, but unfortunately it seems to crash whenever I overwrite a snapshot after FFLocalizeChanges or FFIsDifferent
This simple code will cause it to crash every time.
Note: This code works fine on release v2.1. It appears to only fail on v2.2


#include "FastFind.au3"

#RequireAdmin
FFSetDebugMode(0)

ConsoleWrite(@crlf & 'Starting program')
FFSetDefaultSnapShot(1)
FFSnapShot()
Sleep(2000)
FFSetDefaultSnapShot(2)
FFSnapShot()
If FFIsDifferent(1,2) Then
ConsoleWrite(@crlf & 'Yup, they"re different.' & @crlf)
Else
ConsoleWrite(@crlf & 'Nope, they"re the same.' & @crlf)
EndIf
FFSnapShot();This line will cause the program to crash.
;FFDuplicateSnapShot(1,2); This line would ALSO cause the program to crash.
ConsoleWrite(@crlf & 'Finished replacing Snapshot 2')
ConsoleWrite(@crlf & 'The green land of happiness that is forever out of reach..')

Activity

  1. FastFrench commented on Apr 24, 2018

    @FastFrench
    Owner

    Hi,
    thank you for this report. Quite weird, as 2.2 is not supposed to have significant changes on those algorithms. Now it makes quite a long time I wrote this (and several years I stopped writing code in C++). Will try to check this when I find the time.

  2. vinmred commented on Feb 6, 2020

    @vinmred

    I am trying to write a new function that incorporates 3 shade variations for each red,green, and blue separately but I am having an error compiling in x64. It compiles fine for 32 bit. Here are the errors:

    Severity Code Description Project File Line Suppression State
    Error A2008 syntax error : . FastFindDLL C:\Users\vinmr\Downloads\FastFind-master\FastFind-master\FastFindDLL\Win9x.asm 1

    Severity Code Description Project File Line Suppression State
    Error MSB3721 The command "ml64.exe /c /nologo /Zi /Fo"C:\tmp\FastFindDLL\Debug\Win9x.obj" /W3 /errorReport:prompt /TaWin9x.asm" exited with code 1. FastFindDLL C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\masm.targets 70

  3. st-t commented on Dec 13, 2020

    @st-t

    Hi,
    thank you for this report. Quite weird, as 2.2 is not supposed to have significant changes on those algorithms. Now it makes quite a long time I wrote this (and several years I stopped writing code in C++). Will try to check this when I find the time.

    Hey..
    Are you able to fix this? I'm having the same issue and kinda stuck now.
    I would use the older versions but they're all throwing some dll error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions