FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TDatePick failed
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
TDatePick failed
Posted: Mon Oct 20, 2008 10:27 AM

Hi all,

if I compile the sample datetime.prg with the latest xHarbour and fwh709, it does not work. The sample ends without showing the dialog. There is no error.log created and no gpf, it just ends.

If the date is empty, the sample ends at once, if the date is filled with data, it ends clicking on the checkbox.

Can anyone confirm this ?

Is the latest xHarbour incompatible with older fwh ?

kind regards

Stefan
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
TDatePick failed
Posted: Mon Oct 20, 2008 06:59 PM

>Is the latest xHarbour incompatible with older fwh ?

Probably.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
TDatePick failed
Posted: Tue Oct 21, 2008 07:35 AM

I found, it´s working till the februar release of xHarbour. In later releases somthing must have changed.

At the moment everything seems to work fine, execept tDatePick.

Maybe Antonio can shed some light on this

kind regards

Stefan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TDatePick failed
Posted: Tue Oct 21, 2008 08:43 AM

Stefan,

samples\DateTime.prg is working fine with Harbour and FWH 8.10, but fails when xharbour is used.

We are working to see where the problem comes from, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TDatePick failed
Posted: Tue Oct 21, 2008 08:47 AM
Setfan,

This is the line that fails with xHarbour:
   aVAR[3] := Date() // ctod('')

If you change ctod() call to Date(), then it works fine here.

We need to find what is wrong with xHarbour ctod('')
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
TDatePick failed
Posted: Wed Oct 22, 2008 08:29 AM
Antonio,


If you change ctod() call to Date(), then it works fine here.

We need to find what is wrong with xHarbour ctod('')


yes, but then it will fail if you click the checkbox to deselect and empty the value returned by the control. I´m not sure, if it is really caused by ctod().

I found, that the DTM_SETSYSTEMTIME message sets the state of the checkbox. maybe this message is not correctly evaluated and causes the crash.
kind regards

Stefan
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
TDatePick failed
Posted: Fri Oct 24, 2008 10:25 AM

Antonio,

I just downloaded the latest cvs of xHarbour, it seems to work again. At least the sample is working fine now, though a bigger application gpf´s :(
Maybe I have to rebuild all libs....

kind regards

Stefan
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
TDatePick failed
Posted: Fri Oct 24, 2008 11:05 AM

Latest CVS has a problem with some recent changes.

EMG

Continue the discussion