title: How to resolve the error: "Unfortunately. XXXXX has stopped."
body: <p>Good morning,</p>
  
  <p>I have an application in <strong>C#</strong> to develop an application for android (using Xamarin).
  The application works normally for android versions 2, 3, 4 and 5. However, using a device with <strong>android 6</strong> (marshmallow), the application loads but crashes randomly displaying the following message on the device screen: <strong>"Unfortunately. XXXXX has stopped."</strong> (XXXXX is the name of my application).</p>
  
  <p>When this message occurs in <strong>Visual Studio</strong> is released the following exception:</p>
  
  <blockquote>
    <p>Debugger lost connection to the running application. Likely this means
    the application terminated unexpectedly.</p>
    
    <p>More details can usually be found in the device's debug log:</p>
    
    <p><a href="http://docs.xamarin.com/android/advanced_topics/android_debug_log" rel="nofollow">http://docs.xamarin.com/android/advanced_topics/android_debug_log</a></p>
    
    <p>More Details: </p>
    
    <p>Mono.Debugger.Soft.VMDisconnectedException: Exceção do
    tipo 'Mono.Debugger.Soft.VMDisconnectedException' foi acionada.    em
    Mono.Debugger.Soft.Connection.SendReceive(CommandSet command_set,
    Int32 command, PacketWriter packet)    em
    Mono.Debugger.Soft.Connection.Object_GetInfo(Int64 id)    em
    Mono.Debugger.Soft.VirtualMachine.GetObject[T](Int64 id, Int64
    domain_id, Int64 type_id)    em
    Mono.Debugger.Soft.VirtualMachine.GetObject[T](Int64 id)    em
    Mono.Debugger.Soft.Event.get_Thread()    em
    Mono.Debugging.Soft.SoftDebuggerSession.HandleThreadStartEvents(ThreadStartEvent[]
    events)    em
    Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)<br>
    em Mono.Debugging.Soft.SoftDebuggerSession.EventHandler()</p>
  </blockquote>
  
  <p>I've tried to download the API 23, I tried to update the JDK, I tried to update the Xamarin, tried to change the "target" in the file "manifest". But no success.
  Does anyone know how to solve this problem?</p>
  
  <p>Already thanks.</p>