Hi,
I’ve run into a perplexing situation with my office’s Paradox database, and I’m fishing for clues.
Several years back, we hired someone to develop a database to track membership on various committees. The developer used Paradox 5 and ObjectPAL to create forms for the database interface. Some years later, I inherited responsibility for maintaining the database, so I had to try to learn ObjectPAL. When we upgraded WordPerfect to version 8, I began using Paradox 8 with the database. As I recall, I ran into very few problems converting the existing forms to the newer version of Paradox.
Recently we upgraded to WordPerfect 12, which also gave us Paradox 11. Paradox 11 required me to redeliver all the forms using the newer version, and I was able to do this successfully. However, there is one form that now gives us an error intermittently, and I cannot determine what the problem is.
The form is used to generate a report of the membership for a given committee. On the form, the user selects three parameters from drop-down menus: committee name, begin date and end date. When we converted to Paradox 8, I modified some of the ObjectPal code on this form, but the code has remained the same since then, and we never encountered the error that now occurs intermittently. I’ve identified the line in the source code where the error occurs, if it occurs:
rSpecificCommRpt.txtYear.value = “Membership for ” + arRetVal[2].subStr(arRetVal[2].size() - 3,4)
where arRetVal[2] is the begin date (e.g., “9/1/2004”) and arRetVal[2].subStr(arRetVal[2].size() - 3,4) retains just the four-digit year (i.e., “2004”) so that rSpecificCommRpt.txtYear.value is “Membership for 2004”
[As an aside, the original line of ObjectPAL code from Paradox 5 was
rSpecificCommRpt.txtYear.value = “Membership for ” + arRetVal[2]
The modification using subStr was made so that the generated report would display “Membership for 2004” instead of “Membership for 9/1/2004”.]
The truly odd thing about this problem is that if I select a committee and dates of service, the report might be generated successfully once, twice, whatever. But moments later, I can use the exact same parameters, and instead of the report being generated, an error occurs:
“Unexpected: General Protection Violation.
Press ‘OK’, then save your documents and exit Paradox. If the problem persists: press ‘Abort’ to terminate Paradox.”
Making no changes either to the ObjectPal code or to the selected parameters can yield different outcomes, and I am completely mystified.
The operating system is Windows 2000 w/SP4, for what this may be worth.
Thanks for any comments or suggestions anyone might have.