GithubHelp home page GithubHelp logo

Comments (7)

lovettchris avatar lovettchris commented on May 26, 2024

Oh, looks like a serious bug, I'm on it right away. So far I am not able to reproduce this bug using the files you provided in problems.zip and the double click steps you provided. Both files open fine for me so I end up with 2 xml notepad windows. But I see a similar issue posted here: https://answers.microsoft.com/en-us/windows/forum/all/microsoft-net-framework-encounters-jit-debugging/4aeaf8bc-304b-4c89-a372-ad470ccdc72e So I'm investigating, your trace above mentions NET48REL1, so I'll look for that version.

from xmlnotepad.

lovettchris avatar lovettchris commented on May 26, 2024

I see here that .NET 4.81 is available in a windows update for Windows 11 21H2, Windows 10 21H2 (LTSC), and Windows 10 22H2 according to https://devblogs.microsoft.com/dotnet/upcoming-availability-of-net-framework-4-8-1-on-windows-update-and-catalog/

I happen to be on Windows 11 23H2. What version of windows are you using? When I load my XmlNotepad into the debugger it shows the same versions of .NET have been loaded no problem (specifically version v4.0_4.0.0.0__b77a5c561934e089)

XmlNotepad.exe' (CLR v4.0.30319: XmlNotepad.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Symbol loading disabled by Include/Exclude setting.

from xmlnotepad.

lovettchris avatar lovettchris commented on May 26, 2024

I see the stack trace involves the "System.Windows.Forms.WebBrowser" and I see you are using "BrowserVersion" = "WebView2". Could you try changing your settings to use "WinformsWebBrowser" just to see if that makes a difference? If so we might have a webview2 installation problem.

The error message about [Single Thread Apartment] is confusing because the app already does that for the main thread, but this is a native callback so I'm now sure where that is coming from.

Can you run these too commands from a "cmd" prompt window and send me the output?

reg query HKEY_CLASSES_ROOT\.xml /s
reg query HKEY_CLASSES_ROOT\xmlfile /s

You should see something like this:

(sr) C:\temp\XmlNotepad>reg query HKEY_CLASSES_ROOT\.xml /s

HKEY_CLASSES_ROOT\.xml
    (Default)    REG_SZ    xmlfile
    Content Type    REG_SZ    text/xml
    PerceivedType    REG_SZ    text

HKEY_CLASSES_ROOT\.xml\OpenWithProgids
    MSEdgeHTM    REG_SZ
    VisualStudio.xml.e814adae    REG_SZ
    VSCode.xml    REG_SZ
    XmlNotepad.xmlfile    REG_SZ

HKEY_CLASSES_ROOT\.xml\PersistentHandler
    (Default)    REG_SZ    {7E9D8D44-6926-426F-AA2B-217A819A5CCE}


(sr) C:\temp\XmlNotepad>reg query HKEY_CLASSES_ROOT\xmlfile /s

HKEY_CLASSES_ROOT\xmlfile
    (Default)    REG_SZ    XML Document
    EditFlags    REG_BINARY    00002000
    FriendlyTypeName    REG_EXPAND_SZ    @%SystemRoot%\System32\msxml3r.dll,-1

HKEY_CLASSES_ROOT\xmlfile\CLSID
    (Default)    REG_SZ    {48123BC4-99D9-11D1-A6B3-00C04FD91555}

HKEY_CLASSES_ROOT\xmlfile\DefaultIcon
    (Default)    REG_SZ    "%1"

HKEY_CLASSES_ROOT\xmlfile\shell
    (Default)    REG_SZ    open

HKEY_CLASSES_ROOT\xmlfile\shell\edit

HKEY_CLASSES_ROOT\xmlfile\shell\edit\command
    (Default)    REG_SZ    "C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\MSOXMLED.EXE" /verb edit "%1"

HKEY_CLASSES_ROOT\xmlfile\shell\open

HKEY_CLASSES_ROOT\xmlfile\shell\open\command
    (Default)    REG_SZ    "C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\MSOXMLED.EXE" /verb open "%1"

HKEY_CLASSES_ROOT\xmlfile\shell\open\ddeexec
    (Default)    REG_SZ

HKEY_CLASSES_ROOT\xmlfile\shell\open\ddeexec\topic
    (Default)    REG_SZ

HKEY_CLASSES_ROOT\xmlfile\ShellEx

HKEY_CLASSES_ROOT\xmlfile\ShellEx\IconHandler
    (Default)    REG_SZ    {AB968F1E-E20B-403A-9EB8-72EB0EB6797E}

from xmlnotepad.

lovettchris avatar lovettchris commented on May 26, 2024

Can you also try uninstall 2.9.0.9 and re-install 2.9.0.8 and tell me if this works?

from xmlnotepad.

lovettchris avatar lovettchris commented on May 26, 2024

I found and fixed some issues, please also try this new version:
https://github.com/microsoft/XmlNotepad/releases/tag/2.9.0.10

from xmlnotepad.

Pierre-de-la-Verre avatar Pierre-de-la-Verre commented on May 26, 2024

Hi Chris
thanks for your dedicated support. I tried now:

a) current Version 0.9 with WebView2:
I could open and close some files, but suddenly (maybe after closing my first "group of sessions) the problems began again

b) current version 0.9 with WinFormsBrowser:
no problems.

c) new installation of version 0.8:
no problems, neither with WebView2 nor with WinFormsBrowser

d) new installation of version 0.10:
no problems, neither with WebView2 nor with WinFormsBrowser

c) new installation of version 0.9:
see chapter a) above ..

It seems that you fixed the problem ;-))

from xmlnotepad.

lovettchris avatar lovettchris commented on May 26, 2024

Ok, phew! Glad it is fixed. Thanks for the thorough testing, and prompt reporting, you are really helping to increase the quality of XML Notepad :-)

from xmlnotepad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.