Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PageCount and Fatal Error
Message
De
08/12/2009 19:46:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/12/2009 18:57:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Divers
Thread ID:
01438126
Message ID:
01438128
Vues:
70
>Hi all,
>
>I have the strangest problem. I was making a lot of changes on a form with pageframe and test it, it resulted in dreaded fatal error C0...5. I checked the log and there was no information. I started over again by deleting all FoxUser.*, recompiled .dbc, cleaned up, etc... and restored the old form. I made a change, saved it in backup, tested it, one at a time, to pinpoint the cause of the fatal error. All changes ran fine but then when I added a new page (PageCount was 6, changed it to 7), bam, fatal error! Just ONE simple change! A new page! I also tried This.Refresh() in the click method to no avail. Page 7 has nothing in it. For the life of me, I do not understand why adding a new page caused the fatal error.

I also have one such class with lots of controls on each page, and when one more was needed, we had to add it at runtime - adding it in the class would break it each time (VFP9 though... not much of a consolation).

The solution was to save each page as a class, and add it at runtime, from pageframe's init. Which also makes it easier to select which pages to instantiate if not all were needed, in which order (the .pageorder had a non-default value for many of the pages, very confusing in design mode). In the end, it sets the .activepage=1 (though a different value was possible - e.g. a saved one).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform