with a custumor we are experiencing some problems with a duplicated Id No. The error message refers to the method defcontrol in class tdialog:
- Code: Select all Expand view
METHOD DefControl( oCtrl ) CLASS TDialog
DEFAULT oCtrl:nId := oCtrl:GetNewId()
if AScan( ::aControls, { | o | o:nId == oCtrl:nId } ) > 0
#define DUPLICATED_CONTROLID 2
Eval( ErrorBlock(), _FWGenError( DUPLICATED_CONTROLID, ;
"No: " + Str( oCtrl:nId, 6 ) ) )
else
AAdd( ::aControls, oCtrl )
oCtrl:hWnd = 0
endif
return nil
Is it possible, that on this place there is a Id generated, that already exists? And is there an other possibility, e.g. generating another id, if the same id is already detected, instead of giving an error message?
[/code]Application
===========
Path and name: X:\EHO2009\eho.exe (32 bits)
Size: 4,284,928 bytes
Time from start: 1 hours 19 mins 47 secs
Error occurred at: 08.10.2008, 09:22:11
Error description: Error FiveWin/2 Duplicated Id: No: 133
Stack Calls
===========
Called from: DIALOG.PRG => TDIALOG:DEFCONTROL(0)
Called from: BITMAP.PRG => TBITMAP:NEW(0)
Called from: IMAGE.PRG => TIMAGE:NEW(0)
Called from: AU_DRU2.prg => IMG(5546)
Called from: DRUCK.prg => DR_BITMAP(38)
Called from: AU_DRU2.prg => AU_UMBRUCH(4149)
Called from: AU_DRU2.prg => DRUCKFORM(1091)
Called from: AU_DRU2.prg => STARTDRUCKFORM(563)
Called from: AU_DRU2.prg => (b)AU_FORMULAR(418)
Called from: DIALOG.PRG => (b)TDIALOG:TDIALOG(0)
Called from: => TDIALOG:DISPLAY(0)
Called from: DIALOG.PRG => TDIALOG:HANDLEEVENT(0)
Called from: => DIALOGBOX(0)
Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)
Called from: ah_druck.prg => PRINTDLGSTART(37)
Called from: AU_DRU2.prg => AU_FORMULAR(421)
Called from: AU_DRU2.prg => AUFTRAGDRUCKEN(288)
Called from: au_edit.prg => VALEDITAUFTRAG(1918)
Called from: au_edit.prg => (b)EDITAUFTRAG(1514)
Called from: MDICHILD.PRG => TMDICHILD:END(0)
Called from: au_edit.prg => (b)EDITAUFTRAG(1519)
Called from: DIALOG.PRG => TDIALOG:CLOSE(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: DIALOG.PRG => TDIALOG:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => SYSREFRESH(0)
Called from: DIALOG.PRG => TDIALOG:END(0)
Called from: au_edit.prg => (b)EDITAUFTRAG(1436)
Called from: BUTTON.PRG => TBUTTON:CLICK(0)
Called from: CONTROL.PRG => TBUTTON:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => SENDMESSAGE(0)
Called from: DIALOG.PRG => TDIALOG:COMMAND(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: DIALOG.PRG => TDIALOG:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: WINDOW.PRG => TMDIFRAME:ACTIVATE(0)
Called from: EHO.prg => MAIN(666)