We have a problem on C:\hmg\SAMPLES\COMBO_5\test1.prg

When choosing "Get Item" from menu it has been crashed and caused too crashing of drwatson32.exe of Windows

Win XP SP2; HMG 2.8.8.
Regards
--
Esgici
Moderator: Rathinagiri
I've verified.esgici wrote:Hi
We have a problem on C:\hmg\SAMPLES\COMBO_5\test1.prg![]()
When choosing "Get Item" from menu it has been crashed and caused too crashing of drwatson32.exe of Windows![]()
Win XP SP2; HMG 2.8.8.
Regards
--
Esgici
I've found a very interesting thing.esgici wrote:Hi
We have a problem on C:\hmg\SAMPLES\COMBO_5\test1.prg![]()
I've fixed.esgici wrote:Hi
We have a problem on C:\hmg\SAMPLES\COMBO_5\test1.prg![]()
When choosing "Get Item" from menu it has been crashed and caused too crashing of drwatson32.exe of Windows![]()
Win XP SP2; HMG 2.8.8.
Regards
--
Esgici
Code: Select all
HB_FUNC( IMAGECOMBOGETITEM )
{
char text [1024] ;
COMBOBOXEXITEM cbei;
cbei.mask = CBEIF_TEXT | CBEIF_SELECTEDIMAGE | CBEIF_IMAGE;
cbei.iItem = hb_parni(2)-1;
cbei.pszText = text;
cbei.cchTextMax = 255;
cbei.iImage = 0;
cbei.iSelectedImage = 0;
SendMessage( (HWND) hb_parnl(1) , CBEM_GETITEM , 0 , &cbei ) ;
hb_reta (2) ;
hb_storni ( cbei.iImage , -1 , 1 ) ;
hb_storc ( cbei.pszText , -1 , 2 ) ;
}