Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Repeated calls to custom class method causes Page Fault
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00184056
Message ID:
00184109
Views:
30
What version of VFP? Do you have the latest SP installed?

>I have created a custom class to return html code as text for an input tag for use in creating html pages for a web server.
>
>I'm sure I could find a class that does this job for me, or I could use standard VFP classes to produce the code and save them as HTML. But this is a learning excersize as well, and I'd sure like to know where I screwed this up.
>
>OK, I create an object from the class as such:
>
>oText1 = CreateObject("HtmlClass.Input") && create an instance
>oText1.Type = "TEXT" && Assign input tag type
>oText1.Text = "Text Value" && assign input tag value
>oText1.FieldName = "TEXT1" && assign input tag name
>? oText1.Html() && returns the html code for the complete tag
>? oText1.Html() && CAUSES AN INVALID PAGE FAULT
>
>Now for the great part of the excersize: It naturally causes VFP to unload, AND it causes a memory leak. When I restart VFP a few times and do the above, the computer will no longer have enough memory left to load _any_ applications, and I am forced to restart the machine.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform