The first thing to do anytime you get a C5 is to delete the FoxUser file. Be careful, the one being used could be lurking in a place you don't suspect.
CLEAR RESOURCES won't work here. From VFP Help, "Specifies the name of a cached bitmap, picture, font, cursor, or icon file to be cleared from memory."
>I have an application that uses Crystal reports 9 runtime and RMchart activeX.
>
>The application runs fine - the Crystal Reports works fine and RMchart works fine.
>
>However:
>
> - If I preview a Crystal Report, and then go to the RMchart option, it gives a C0000005 error everytime.
> - Starting with the RMchart option, followed by Crystal Report is OK. But again choosing the RMchart option gives the C0000005 error.
>
>So: Independently the two options work just fine. However, anytime the RMchart option follows a Crystal Report, the C0000005 error always occurs.
>
>The RMchart activeX is subclassed.
>
>I seem to remember that there was a command to clear resources?
>
>Help please. Any suggestions?
>
>
>Cyril
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer