Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble releasing form
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Trouble releasing form
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
00995436
Message ID:
00995436
Vues:
52
Hello,

I have trouble releasing a form, but I have no idea why. I checked for outstanding object references (Objref.exe), there are none.

The strange thing is that it happens always when I run a certain code twice, and this doesn't give me a clue.

The code is like this:
loRetVal = NEWOBJECT("Label")
loRetVal.ADDPROPERTY("DoublesFound",.F.)
loRetVal.ADDPROPERTY("aBatches[1,3]",.F.)
*
lnNumberOfBatches = THIS.TicketsDisplay.NumberOfTickets
*
LOCAL loBatchTest
FOR EACH loBatchTest IN THIS.TicketsDisplay.Controls
	loBatchTest.CheckBatches(loRetVal)
ENDFOR
*
IF loRetVal.DoublesFound = .T. 
	RETURN .F.
ENDIF
*
*
lnNumberOfBatches = THIS.TicketsDisplay.NumberOfTickets
*
FOR lnNr = lnNumberOfBatches TO 1 STEP -1
	*
	loBatch = THIS.TicketsDisplay.Controls[lnNr]
	loBatch.DoCreateCertificate(lnBatchNr)
	THIS.TicketsDisplay.REMOVEOBJECT(loBatch.NAME)
	*
ENDFOR
When I test this code, I first let the CheckBatches() fail and return .F., the second time I go all the way and it removes the container objects successfully, but after that I cannot close the form anymore. I do not have any object references in the container objects.

Does anybody have an idea where I can check elsewhere?
Christian Isberner
Software Consultant
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform