I have DLLs (plugins) with its own windows and its menus. I'm using typical Connect function in my DLL:
var DllApp: TApplication; DLLScr: TScreen; function Connect(App, Scr: Integer): PChar; stdcall; begin Result := PChar(PLUGIN_NAME); DLLApp := Application; DLLScr := Screen; Application := TApplication(App); Screen := TScreen(Scr); end; Another exported function (DoPlugin) creates MDIChild window. That window has its own MainMenu component with GroupIndex assigned to 1 (while main form uses GroupIndex 0). When the MDIChild window is created its menu is merged with main window menu. But clicking any menu item from MDIChild form causes AV. I'm google'ing for help but with no success. I'm using D2007 Pro. What causes that AV? Regards, Jacek

