Subj : new TStringList from a dll To : borland.public.cpp.borlandcpp From : Simeon Date : Tue Oct 11 2005 05:05 pm Hi All, I have a in a class declared in a dll as follows: class __declspec(dllexport) cMappedRefs:public TStringList { public: __fastcall cMappedRefs(); __fastcall ~cMappedRefs(void); void __fastcall Init(TStringList *refs); }; When I create a object in the main application I get an access violation from the dll. cMappedRefs *pAllPartialRefs=new cMappedRefs; I have added the memmgr.lib in both projects. Also the class was working fine when it was in the main application. Any suggestion? Thanks, Simeon .