title: ctypes, python3.8 : OSError: exception: access violation writing 0x00000000
body: <p>i want to run a dll via python 3.8
  i have a function in my dll part which is :</p>
  
  <pre><code>void DLLAPI __stdcall GenerateReport (
      int             SeqContext,
      char*           szHost,
      char*           szDBName,
      char*           szUser,
      char*           szPasswd,
      const char*     szUut_Result_Id,
      char            szStylesheet[MAX_PATHNAME_LEN],
      char            szDestinationDir[MAX_DIRNAME_LEN],
      char            szPrefix[MAX_FILENAME_LEN],
      char            szFileName[MAX_PATHNAME_LEN],
      char            szPathName[MAX_PATHNAME_LEN],
      short*          psErrorOccurred,
      long*           plErrorCode,
      char            szErrorMessage[1024]
      );
  </code></pre>
  
  <p>For a python part i did like this :</p>
  
  <pre><code>def PrintReport():
      szNom_PV_Court = ''
      szErrormessage = ''
      sErrorok = 0
      lErrorcode = 0
  
      worker_ = cdll.LoadLibrary("D:\\users\\Worker.dll")
  
      if (worker_ == 0):
          print( " Could not open file DLL")
  
      worker_.GenerateReport( 0, "localhost" ,  "backend" , "user" , "test12", str( Uut_Result_Id ) , "D:\\users\\py\\ResourceFiles\\Gen.xsl" , "D:\\users\\py","" ,szNom_PV_Court , "D:\\users\\py" ,sErrorok ,lErrorcode ,szErrormessage )
  </code></pre>
  
  <p>when i execute my code i get error : OSError: exception: access violation writing 0x0000000</p>
  
  <p>I'dont understand this error please help</p>