Click here to Skip to main content
15,913,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all visitors,

I created a form in visual studio 2008 and dropped Crystal Report ActiveX Control to that form(Form1).I run my application and display Report correctly,however, when i close form(Form1),the system error exception like this "System.ExecutionEngineException was unhandled
Message: An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module.".

Does anyone know how to solve this problem?

Thanks

TONY
Posted
Comments
Sandeep Mewara 23-Apr-12 1:42am    
Any stack trace?

1 solution

Such errors are typically caused by some interaction problems with non-managed code and are complicated to solve.
Do you use the proper clean-up routines for your COM object?
Do you use DllImports?
 
Share this answer
 
Comments
soeun tony 23-Apr-12 3:34am    
Thanks for your reply.
Yes of course. i have import some DLL file in my project.

Thanks

TONY
Bernhard Hiller 23-Apr-12 6:38am    
You have to look through all structures marshalled from the managed to the unmanaged side. Somewhere an object was not released correctly, some memory not freed, etc...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900