Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugging a problem
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Debugging a problem
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01469670
Message ID:
01469670
Vues:
110
Hi,

I have been trying to figure out why I am getting a certain error. The error happens when a container that has a bunch of controls (textboxes, combo, etc. etc) is being instantiated. The problem started when I added a new control to this container. This control in the INIT method retrieves a cursor and then uses this cursor (the control is based on the combobox). The error message says that this cursor does not exist. But the strangest thing is that when I try to run this form in the debugger the following happens. I can watch as controls are being instantiated. But the debugger never reaches this new controls. And then all of a sudden the debugger starts going through Destroy methods of various controls and at the end I get the error message. If I remove the new control, problem goes away. But, again, how come the controls is never instantiated (at least I don't see it in the debugger)?

I would appreciate any suggestions on how to debug this issue

UPDATE: I cleared the RowSource of the control (combobox) which uses the cursor. And the problem goes away. So it does seem like the problem is caused by this control. But the question still stands as to why the INIT of this control is never called?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform