oga83 a répondu : En mettant la carte sim dans un téléphone, le mms sera lisible et tu pourras voir d'où il vient.
La carte sim du routeur est au format micro et celle de mon smartphone au format nano. Donc je ne vais pas faire cette manip. Je laisse tomber.
oga83 a dit : es-tu sûr que la commande non forkée ne te demande pas une validation ?
Si, mais pour autant ça marche. Je lance l'appli HM en mode graphique, un écran "faire un don" s'affiche. Je ne clique pas sur "terminer" et pour autant, quand je laisse un message téléphonique sur le répondeur du téléphone fixe connecté au routeur, j'ai bien un sms en retour.
Alors qu'il ne se passe rien si la commande est lancée en arrière plan.
Mystère donc !!!
Pour info, voici les messages qui s'affichent sur le terminal quand je lance la commande non forkée.
SendMessage (71303249, 0xcb, 0x1, 0x7fa49cf05030)
SendMessage (71303251, 0xcb, 0x1, 0x7fa49cf07330)
SendMessage (71303253, 0xcb, 0x1, 0x7fa49cf09478)
SendMessage (71303255, 0xcb, 0x1, 0x7fa49cf0b5d0)
Puis ensuite d'autres messages quand l'application continue à fonctionner :
Unhandled Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () [0x0001b] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
at System.Net.Sockets.Socket.Send (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags, System.Net.Sockets.SocketError& errorCode) [0x00000] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
at System.Net.Sockets.Socket.Send (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) [0x00000] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
at System.Net.Sockets.Socket.Send (System.Byte[] buffer) [0x00000] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
at System.Windows.Forms.XplatUIX11.WakeupMain () [0x00000] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUIX11.SendAsyncMethod (System.Windows.Forms.AsyncMethodData method) [0x00080] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUIX11.SendMessage (System.IntPtr hwnd, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x0007a] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUI.SendMessage (System.IntPtr handle, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.Form.Close () [0x00037] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.NotifyIcon+BalloonWindow.Close () [0x00000] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.NotifyIcon+BalloonWindow.Close()
at System.Windows.Forms.ThemeWin32Classic.HideBalloonWindow (System.IntPtr handle) [0x0001c] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUIX11.SystrayRemove (System.IntPtr handle, System.Windows.Forms.ToolTip& tt) [0x0001d] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUI.SystrayRemove (System.IntPtr handle, System.Windows.Forms.ToolTip& tt) [0x00000] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.NotifyIcon.HideSystray () [0x0001b] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.NotifyIcon.Dispose (System.Boolean disposing) [0x00008] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.ComponentModel.Component.Finalize () [0x00000] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () [0x0001b] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
at System.Net.Sockets.Socket.Send (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags, System.Net.Sockets.SocketError& errorCode) [0x00000] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
at System.Net.Sockets.Socket.Send (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) [0x00000] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
at System.Net.Sockets.Socket.Send (System.Byte[] buffer) [0x00000] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
at System.Windows.Forms.XplatUIX11.WakeupMain () [0x00000] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUIX11.SendAsyncMethod (System.Windows.Forms.AsyncMethodData method) [0x00080] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUIX11.SendMessage (System.IntPtr hwnd, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x0007a] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUI.SendMessage (System.IntPtr handle, System.Windows.Forms.Msg message, System.IntPtr wParam, System.IntPtr lParam) [0x00000] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.Form.Close () [0x00037] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.NotifyIcon+BalloonWindow.Close () [0x00000] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.NotifyIcon+BalloonWindow.Close()
at System.Windows.Forms.ThemeWin32Classic.HideBalloonWindow (System.IntPtr handle) [0x0001c] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUIX11.SystrayRemove (System.IntPtr handle, System.Windows.Forms.ToolTip& tt) [0x0001d] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.XplatUI.SystrayRemove (System.IntPtr handle, System.Windows.Forms.ToolTip& tt) [0x00000] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.NotifyIcon.HideSystray () [0x0001b] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.Windows.Forms.NotifyIcon.Dispose (System.Boolean disposing) [0x00008] in <5ad3d0bd1cd24243af30eb325f259ec8>:0
at System.ComponentModel.Component.Finalize () [0x00000] in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
Comme pour le mms, pour moi tout ça c'est du chinois.
Une idée ???