Socket on Windows Server 2000

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Eugeniusz,

Are you using the same Windows Mobile version on the emulator and on the real Pocket PC ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Eugeniusz Owsiak
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Post by Eugeniusz Owsiak »

Antonio,

Yes, the same version

Now I'm testing program on Win Server 2000. PPC is making connection, resolving GetHostByName but terminate with message:
"Internal error" at sending data to socket server oSocket:SendData("Data")

I cannot trace why.

Regards
Eugeniusz
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Eugeniusz,

Does the internal error provide its description ? (it should)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Eugeniusz Owsiak
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Post by Eugeniusz Owsiak »

Antonio,
There was nothing in description. :(
Regards
Eugeniusz
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Eugeniusz,

Is there a way to reproduce it on the Pocket PC emulator ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Eugeniusz Owsiak
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Post by Eugeniusz Owsiak »

Antonio,
I tray but I cannot get this error on emulator.

BTW I ask on msnews.microsoft.com microsoft.public.pocketpc.developer
for file and record locking.

Best regards
Eugeniusz
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Eugeniusz,

>
BTW I ask on msnews.microsoft.com microsoft.public.pocketpc.developer
for file and record locking.
>

Did you get an answer ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Eugeniusz Owsiak
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Post by Eugeniusz Owsiak »

>>> Can You tell me it is posible to lock xBase record on LAN server from
>>> aplication running on Pocket PC with WM 5.0? Have WM 5.0 any file
>>> sharing function?

>> Eugeniusz,
>>
>> WM 5.0 has the LockFileEx function that could be used for that purpose,
>> but there's no native support for reading DBF files. There is a 3rd party
>> solution available from www.codebase.com, but I don't know if they
>> support the scenario you want.
>>
>> --
>> Ginny Caughey
>> .NET Compact Framework MVP
>>
> Thank You Ginny
>
> I use insteed of Codebase solution from FiveTech Software FiveWin for
> Pocket PC. This product is based on Harbour. I cannot get record locking
> on my iPaq with WM 5.0. This is some strange for me because the same
> program rewriten in desktop WinXP environment work properly.
> I am sure Harbour have good solution for menage file and record sharing,
> locking etc.
>
> regards
> Eugeniusz
>
> BTW Codebase is only for single user.
>
Eugeniusz,

It's entirely possible that Harbour does not provide file and record locking
on Windows CE platforms. Support for LockFileEx was only added in CE 5.0,
and in fact CF 2.0 doesn't provide a wrapper for it in the current version.

--
Ginny Caughey
.NET Compact Framework MVP
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Eugeniusz,

Harbour uses LockFileEx() and it is available from FWPPC. Another issue is if WM 5.0 properly supports it. We may do a test in pure C to build a sample we may provide to Microsoft guys.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply