fpRecv, and fpRecvFrom not working in procedures,functions,classes only in main program.
Original Reporter info from Mantis: Marcsello
-
Reporter name: Pünkösd Marcell
Original Reporter info from Mantis: Marcsello
- Reporter name: Pünkösd Marcell
Description:
When I call the fpRecv, or fpRecvFrom from not the main program (from an unit, or just an other function or procedure) it always returns -1. I can't figure out what is wrong, but some times it just work.
Additional information:
I added the latest file where i found this bug, and marked the lines
the procedured one (at line 130) fails, while exactly the same but in the main program (line 282) works fine. I sniffed out sockets, and both case the server responded, only the fprecvfrom fails in the procedure. This one tries to use UDP, but in an other project I had the same problem with TCP (I won't include it, beacuse it's too large). But I can't reproduce it some times.
I won't use other libs for networking (syntapse, lnet and stuff) beacuse I'll like to compile them to Android, and some of them not working on it. I could make work only sockets.
Mantis conversion info:
- Mantis ID: 25963
- OS: Win32
- OS Build: XP sp3
- Platform: PC
- Version: 2.6.0