Forum Discussion

Orvai's avatar
Orvai
Occasional Contributor
29 days ago

WinForms application crashes on "save as" dialog

Hello,

I have a problem with testexecute. Sometimes the application under test crashes when the "save as" dialog shall be displayed. 

Under "Details" in the testlog I get an error code 0xC0000005. In the Windows event log I see an error in the module "kernelbase.dll".

Has anybody else experienced this problem? I have many testcases where the "save as" dialog is used, and it happens quite random on a few of this test cases.

Best regards

Christoph

5 Replies

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    You have no doubt researched this but I will post this for others...

    Error code 0xC0000005 is a general access violation error, indicating that a program is trying to access memory it’s not allowed to. This issue often involves problems with permissions, corrupted files, or conflicting software. The reference to kernelbase.dll in the Windows Event Log indicates that this issue might be related to the Windows kernel or system libraries.

    Given this, do you have any code in place to verify if the file already exists and the path is valid in each case?  Issues with the computer running the tests should not be ruled out completely.  Wrtting some code to loop and perform file system tests within TestComplete would be a good idea just to rule out issues with your tested app and the pc.  

    Ref: https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfilesystem/index.html?sbsearch=aqFileSystem

    Good luck!  Check back and let us know what you find!

    P.S.  If you find my posts helpful give me a like and be sure to mark a 'Best Answer' to give credit and help others with the same questions!

     

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    Adding another thought...  You could create a test that only performs that function repeatedly and then analyze and share the results with Dev.  

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    If you were to repeat the test manually, does it always work?

    What version of TestExecute are you using? Was it working before?