CreateObject and events
Publicado: Mar Oct 08, 2013 11:14 am
Hi!
I want to use this code:
local cut1d := CreateObject( "optimal1dx.Optimization1DX" )
cut1d:BladeWidth := 12
for i := 1 to 12
cut1d:SetDemandPiece( i-1, i * 21, 90, 90, i-1 )
next
for i := 1 to 2
cut1d:SetRepositoryPiece( i-1, i * 110, i-1 )
next
cut1d:OnFinish := {|| MsgInfo( cut1d:TotalWaste ) }
cut1d:Start()
Everything works fine except that the OnFinish event is not fired.
I get this error message:
Xailer-Version: Xailer 3.1.0
Compiler: Harbour 3.2.0dev (Rev. 18854)
C/C++-Compiler: MinGW GNU C 4.7.1 (32-bit)
Windows-Plattform: Windows 7 6.1.7601 Service Pack 1
Untersystemaufruf: WINOLE
Systemcode: 1008
Default-Status: .F.
Beschreibung: No exported variable
Operation: ONFINISH
Argumente: [ 1] = Typ: B Wert: {|| ... }
Involvierte Dateien:
DOS-Fehlercode: -2147352570
Aufgerufene Programmteile:
WIN_OLEAUTO:_ONFINISH (0)
TFORM1:LOADOPTIDLL (381)
Any idea?
Many thanks is advance!
Best regards, Timm.
I want to use this code:
local cut1d := CreateObject( "optimal1dx.Optimization1DX" )
cut1d:BladeWidth := 12
for i := 1 to 12
cut1d:SetDemandPiece( i-1, i * 21, 90, 90, i-1 )
next
for i := 1 to 2
cut1d:SetRepositoryPiece( i-1, i * 110, i-1 )
next
cut1d:OnFinish := {|| MsgInfo( cut1d:TotalWaste ) }
cut1d:Start()
Everything works fine except that the OnFinish event is not fired.
I get this error message:
Xailer-Version: Xailer 3.1.0
Compiler: Harbour 3.2.0dev (Rev. 18854)
C/C++-Compiler: MinGW GNU C 4.7.1 (32-bit)
Windows-Plattform: Windows 7 6.1.7601 Service Pack 1
Untersystemaufruf: WINOLE
Systemcode: 1008
Default-Status: .F.
Beschreibung: No exported variable
Operation: ONFINISH
Argumente: [ 1] = Typ: B Wert: {|| ... }
Involvierte Dateien:
DOS-Fehlercode: -2147352570
Aufgerufene Programmteile:
WIN_OLEAUTO:_ONFINISH (0)
TFORM1:LOADOPTIDLL (381)
Any idea?
Many thanks is advance!
Best regards, Timm.