Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Illegal operation error- Crystal preview in VB

Status
Not open for further replies.

Varco

Programmer
Oct 22, 2000
49
US
I have a Crystal V8 report compiled int VB6 that when it has been installed from the distribution file set and the report preview window is displayed, will generate the "Program performed an illegal operation and will be closed" error message as you try to exit the preview screen. One user told me this happens every time, another said it works fine the first time the report runs, then the error occurs on the second execution. I was told that Crystal must be hanging onto memory, thus the error the second time around. Jim Varco
Varco Consulting
varco@compuserve.com
 
I have the same problem, it's happening on windows NT and windows ME for me as well. Any suggestions?
 
After a year and a half I had to stop and give some thought to what was done to fix this problem. The original code was written by someone else, and I did not have it to work with, just the problems. In the end I wrote my own code and the problem vanished. I still do not know exactly what was causing it. I would suggest as a starting point to make sure that all memory is being released when the report is finished, check Task Manager and make sure the program is removed from memory on completion. I have had some trouble before when I did not properly close and destroy a recordset with the program remaining in memory and consuming more memory every time it was executed. Jim Varco
Varco Consulting
jvarco@varcconsulting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top