TDatePick failed

Post Reply
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

TDatePick failed

Post by StefanHaupt »

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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

>Is the latest xHarbour incompatible with older fwh ?

Probably.

James
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post by StefanHaupt »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Setfan,

This is the line that fails with xHarbour:

Code: Select all

   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
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post by StefanHaupt »

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
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post by StefanHaupt »

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
Post Reply