ported the code to Microsoft Visual Studio 7.0. to compile with /clr
extension ON; as the exe uses some managed code components.
The project compiles fine in both Debug and Release version. It also
runs perfectly in both versions if I run the exe directly from windows
explorer.
But when I try to run the Release version from the IDE, it gives me
the following error message:
An unhandled exception of type 'System.Security.Policy.PolicyException' occurred in Unknown Module.
Additional information: Unverifiable assembly
's:\AppSrc\Fe\ToolsSimulator\Release\ToolsSimulato r.exe' failed policy
check
If I try to run the Debug version through the IDE the app crashes at: GetClientRect(rect) at void CRichEditView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags).
Any suggestion will be very helpful.
Thanks,
~Saurabh