then starts to Listen and launches a second application passing the socket path above to connect.
The problem arise on a particular machine: the connection opens on the child app (Connect event fires) and the child app start writing to the socket, -BUT- the listening app never connects and receive the data.
After many tries, I discovered that changing the IPCSocket.Path, either to another directory or just the name of the socket file, everything works.
This suggests me there is something related to the temporary folder on that machine.
Reinstalled Windows 7 from scratch and turned of the antivirus: same problem.
Now, since no real file is created on Windows, like on Mac, its very difficult to understand what happens.
It would help to have some more details on how Xojo handle this socket with a such ghost file, to better understand where the problem lies.
Btw, the documentation about IPCSocket says the file should be deleted after disposing the socket, but how I can delete a non existent file?
I would really like to hear something from Xojo people about this fact.
Knowing some details about the the socket path would probably help to solve this problem.
[quote=90492:@Massimo Valle]Well, the LR recommends explicitly a NativePath, tough it makes no difference since NativePath and AbsolutePath are the same on Windows.
(But the code you posted is wrong for Mac, it needs a NativePath instead of a ShellPath)[/quote]
It comes from the example project code that works perfectly. I tend to believe what works is a good start
It works in most situations, but ShellPath is very different from NativePath (POSIX).
In the end, this code is old, I believe, and it can lead to difficult to track bugs.
[quote=90700:@Massimo Valle]It works in most situations, but ShellPath is very different from NativePath (POSIX).
In the end, this code is old, I believe, and it can lead to difficult to track bugs.[/quote]
I filed a report to update the example project to reflect whats written on the Language Reference about the IPCSocket.Path.
<https://xojo.com/issue/33649>