[Python] Python code---> .dll issues ---> Error during the call .dll: [WinError 250477278]...

Discussão em 'Python' iniciado por Stack, Março 5, 2025.

  1. Stack

    Stack Membro Participativo

    I need to call an undeclared function in python from a .dll library that does not include any parameters (let's say it just edits a .txt text file). So, I get the following error Error during the call .dll: [Error WinError 250477278] Windows error 0xeedfade I tryed different methods to fix this, but nothing helped me. Also i tryed to write simple C++ code to do the same, and i agin have got following error: "The exception was not handled. Preliminary explanation on request 0x00007FF86C0CB699 (KernelBase.dll ) in CDLL.exe : 0x0EEDFADE (parameters: 0x000000000054CAB9, 0x000001B5885FACD0, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00000000000000000000)."

    I've given up, and dont know what can i do with this, so if you have some advices it might help me with this issue

    I tryed to follow common chat gpt and stackoverflow advices, like: import pythoncom; shecked the path to the DLL, used the absolute path to check if the DLL is loaded; architecture check - 32/64 (its ok); checked the export of functions.

    import ctypes

    import os

    import pythoncom

    dll_path = os.path.abspath('./DLLcomp64.dll')

    lib = ctypes.CDLL(dll_path)


    f='Composition'

    if hasattr(lib,f):

    print(f"Work")

    else:

    print(f"dnt work")

    try:

    lib.Composition()

    except Exception as e:

    print(f"Error during the call: {e}")


    }

    Continue reading...

Compartilhe esta Página