Error message when opening Kodi

I have installed Kodi 17.1 on Windows 10 and when I open it I get a blank screen for about two seconds and then an error message saying that Kodi has stopped working.

It says ‘XBMCFoundation.Kodi_4n2hpmxwrvr6p!Kodi has stopped working’

I have tried uninstalling and reinstalling and I have tried deleting the Addons27 file which has fixed similar problems for other people, still the same problem.

And how do I send a debug log file thing and post that?

Thanks