1

All,

I am running my WPF application using VS2010 and it is running fine in my machine. But when I remote desktop into my machine(same machine) from a different machine, application crashes suddenly when I drag a scrollbar. The same functionality works fine in my machine.

Is there anything to do with the RDP session? Ideally speaking I am running the application from my machine with and without RDP.

could anyone help me out in this issue, I have been looking into this from several days

Thanks

Jasti
  • 927
  • 5
  • 14
  • Are you getting any event log entries from the crash? – John Bowen Apr 12 '13 at 19:21
  • 1
    A reach but update the graphics drivers on both machines. For that matter all service packs and updates. – paparazzo Apr 12 '13 at 19:29
  • Have you subscribed to the Unhandled exception event? http://stackoverflow.com/questions/793100/globally-catch-exceptions-in-a-wpf-application – grantnz Apr 12 '13 at 19:32
  • Do you do some kind of ui-thread marshalling? – Mare Infinitus Apr 12 '13 at 20:00
  • I am using TPL for parallel threading. I can see ERROR in application event log with Micorosoft Visual Studio as Source. – Jasti Apr 12 '13 at 22:07
  • This bug report may be relevant: https://connect.microsoft.com/VisualStudio/feedback/details/1930838/animated-wpf-effects-cause-hard-crash-over-rdp-under-certain-conditions – Sorensen Oct 22 '15 at 21:40

1 Answers1

0

As grantnz suggested, you can try subscribing to the unhandled exception event. That will allow you to catch the exception and view the stack trace for more details. If using .net framework 2.0 or above, thread exceptions do not get caught. To get around this, you can add legacy exception handling to your app.config:

<configuration>
    <runtime>
        <legacyUnhandledExceptionPolicy enabled="1" />
    </runtime>
</configuration>

Note:I recommend only using the above for debugging and not distributed for production.