locked
App, developed with Visual Studio 2015 runs perfectly on Windows 7, 2008 Server, etc. but crashes on Windows 10 RRS feed

  • Question

  • I have question about Visual Studio Enterprise 2015. I have developed .net application with VB which runs perfectly on Windows 7, 2008 Server, etc. but crashes on Windows 10. What is different on Windows 10? The code where it is happen is this:

                    ptr = CType(Marshal.PtrToStructure(ppElementDA2, GetType(Integer)), Integer)

             StructDA2 = CType(Marshal.PtrToStructure(ptr, GetType(ASC_OBJECT)), ASC_OBJECT)

    Is it Marshal.PtrToStructure obsolete by Windows 10?


    iv_ski1

    Wednesday, February 5, 2020 9:51 AM

Answers

  • Thank you for the suggestion, but I have tested the app on many machines with Windows 10. The same behaviour. 

    I solved the issue and will close the case. The solution was: the dll and exe to compile as x64. 


    iv_ski1

    • Marked as answer by iv_ski1 Thursday, February 6, 2020 8:02 AM
    Thursday, February 6, 2020 8:02 AM

All replies

  • Well, if it crashed on Win10 was there an exception thrown or was there a message logged  in the System event log about the crash?
    Wednesday, February 5, 2020 10:56 AM
  • there is a message logged in event log:

    Name der fehlerhaften Anwendung: AMA-61850-IED Browser.exe, Version: 1.0.0.8, Zeitstempel: 0x5e3aa15b
    Name des fehlerhaften Moduls: clr.dll, Version: 4.8.4121.0, Zeitstempel: 0x5deace54
    Ausnahmecode: 0xc0000005
    Fehleroffset: 0x000f127c
    ID des fehlerhaften Prozesses: 0x2008
    Startzeit der fehlerhaften Anwendung: 0x01d5dc147247099c
    Pfad der fehlerhaften Anwendung: C:\Projekte\AMA-61850-ClientInterface\SourceCode\Version1\AMA-61850-IEDBrowser\bin\Release\AMA-61850-IED Browser.exe
    Pfad des fehlerhaften Moduls: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Berichtskennung: c5f51517-b9e0-43d1-9c9a-4394bd12ceb4

    And also .Net Runtime error before:

    Anwendung: AMA-61850-IED Browser.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund eines internen Fehlers in der .NET-Laufzeit beendet. bei IP 7380127C (73710000) mit Exitcode 80131506.


    iv_ski1

    Wednesday, February 5, 2020 11:13 AM
  • Hi,

    Given that your app has been successfully compiled, visual studio has completed its task and the possibility of code problems is also small.

    Noticed that clr.dll was mentioned in the error message, so the cause of the error is likely to be a dll, or a framework, or a component.

    If there is a problem with the .net framework, you can try the following .NET Framework Repair Tool. This tool is specifically for repairing the .net framework.

    https://docs.microsoft.com/en-us/dotnet/framework/install/repair

    Hope it be helpful.

    Best Regards,

    Julie


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, February 6, 2020 7:51 AM
  • Thank you for the suggestion, but I have tested the app on many machines with Windows 10. The same behaviour. 

    I solved the issue and will close the case. The solution was: the dll and exe to compile as x64. 


    iv_ski1

    • Marked as answer by iv_ski1 Thursday, February 6, 2020 8:02 AM
    Thursday, February 6, 2020 8:02 AM