Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird Crash
Message
 
À
30/08/2002 16:37:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00695450
Message ID:
00696740
Vues:
12
Once again you were correct. It did come back. What I found out is it only happens in VFP6, not VFP7. Unfortunatly we are not able to upgrade our application to VFP7 as we are using a third party library that won't load in VFP7.


VFP6 crashes (sometimes) on this line:

lC8 = type('loNode.TEXT') # 'U'

Here's the offending code (unrelevent code removed)
LOCAL loNode
WITH THIS.PARENT
   FOR EACH loNode IN .tvwFrom.Nodes
      FOR EACH loNode2 IN .tvwFrom.Nodes
         lC8 = TYPE('loNode.TEXT') # 'U'
      ENDFOR
   ENDFOR
ENDWITH
This fixed it
LOCAL loNode,oNode
WITH THIS.PARENT
   FOR EACH loNode IN .tvwFrom.Nodes
      oNode = loNode
      FOR EACH loNode2 IN .tvwFrom.Nodes
         lC8 = TYPE('oNode.TEXT') # 'U'
      ENDFOR
   ENDFOR
ENDWITH
>>I took your suggestion, and just splitting up the conditions solved the problem. Thanks!
>
>Yeah - forgot to mention that that was a possibility, too. Although I didn't think it was likely in your case.
>
>What is worrying about this is that if you don't really know the cause of the problem, that means that the problem might very well come back :(
>
>Hilmar.
Rip Ryness
International Falls, MN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform