Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageCount and Fatal Error
Message
From
08/12/2009 19:56:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Miscellaneous
Thread ID:
01438126
Message ID:
01438133
Views:
47
>>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 agree with Dragan, though it would require bunch of changes. Save all objects on each page as a separate container based class and instantiate it in run-time first time the page is activated.

You can actually save the page itself, so no need to introduce containers... which is handy if there are cross-references into the controls on the pages, so there wouldn't be any need to do much of heavy editing just to change the membership hierarchy.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform