Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C0000005 errors with Interop Forms User Control
Message
From
25/03/2010 11:41:16
 
 
To
25/03/2010 11:14:39
Brooks Adair
Edgemed Healthcare Solutions
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01457174
Message ID:
01457181
Views:
72
First thing to do:

Make sure you aren't using a VFP resource file (RESOURCE=OFF in Config.fpw)


>I am using the Interop Forms Toolkit vs 2.0. I have a number of .NET User Controls that I have wrapped in Interop user controls. I have them on VFP Forms. Basically they are new screens that are developed in c#. They are sized to take the entire surface of the form, the only other control is an off screen close button designed to work as the cancel operation.
>
>Everything works fine initially. However under heavy usage we were having VFP crash seemly at random. Looking at the vfp9rerr.log we had a number of c0000005 errors. All of them at the time of launching one of the VFP\.NET forms. After some experimentation it seems that after repeated calling of any of the VFP\.NET forms the error is generated.
>
>I have done some tests where I put the interop user control on a simple VFP form, have GotFocus call THISFORM.Release(). Then looped calling the form in the dev environment and received the crash. I have also had a case where I created a new form put the same control and had it work for 1000s of calls with out error. I have had 2 forms that seem to be the same with the same user control and one crashed and one worked. I have gone through property by property and found no significant difference. I have also opened the SCX of each form as a table, compared them, and found nothing.
>
>I will continue to try to track down what is causing this, but does anyone have any ideas? Is anyone here using complex user controls with the Interop Forms Toolkit successfully?
>
>Brooks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform