Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with sockets
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01339151
Message ID:
01342157
Views:
18
So, I have got everythig working. Thanks to you.
But here is a problem I am still having. Here is how I am testing solution.
I have a simple form with a timer that generates a short text (current time) every second.
On a remote computer I have an object that runs as a com server. That server actually communicates with .net exe via WM_COPYDATA. So, my form sends data to the remote server and the later sends data to .Net. Like I said everything is working.
But sometimes I am losing data. In .Net I am writing each event to Console. That's how it looks:
10:10:01
10:10:02
10:10:03
10:10:04
.....
10:10:19
10:10:21
10:10:22

It goes for a 20-30 secs fine that I see missed event, that it can go fine for another half of a second, and missed data again.

Any idea you might have why that's happening?

Thanks


>Hi Mark,
>
>>lcStruct = ;
>>toInt(m.lnIdentifier,4) + ;
>>toInt(Len(m.lcData),4) + ;
>>toInt(m.lnMem+12,4) + ;
>>m.lcData
>>What is toInt here?
>
>Oops, sorry. toInt is a helper function that I forgot to include. With VFP 9 it's better to replace this with BINTOC():
>
>lcStruct = ;
>BINTOC(m.lnIdentifier,"RS") + ;
>BINTOC(Len(m.lcData),"RS") + ;
>BINTOC(m.lnMem+12,"RS") + ;
>m.lcData
>
>The purpose is to create a structure that contains several integer values.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform