Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid in pageframe causing memory or illegal operation er
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00292333
Message ID:
00292379
Vues:
19
>Hi,
>
>I am using a pageframe consisting of 9 pages, each page containing an empty grid. The grid is populated in the activate event of the page, by adding columns and setting properties. I used to have 7 pages, and everything worked fine. Now, on most computers, everything still works fine, but on some computers, activating some of the pages causes an 'insufficient memory' error or directly causes the Windows' 'this program has performed an illegal operation' or the memory could not be 'written' error.
>
>This in fact occurs by selecting one of the pages that was already there in the 7-page pageframe or by selecting one of the added pages.
>
>Since it occured on my own computer as well, and either running the application from my desktop, or from within FoxPro, I could trace the program. This indicated there is no special line of code where the program stops, it just somewhere/sometime (but always before finishing the Activate-code) seems to notice that something is wrong.
>
>This seems to happen only in VFP5, in VFP6 I don't get the error.
>
>Does anyone know what may cause this and what to do about it (other than upgrading to VFP6).
>
>Auke Zijlstra

I have seen the memory error occur on my page frames when I accidentally caused a recursive loop in the refresh events. I had a page frame with several pages and a refresh method of a button on the page frame called the refresh method of the page. This caused a rather nasty loop unil the program errored out. You might want to use the debugger to trace your code and see what is firing before you get the error.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform