> - Here example for function inside a class of myunit: > > > > library mylib ; > > > > uses > > myunit; > > > > function mylibclassfunction() : integer; cdecl; > > var > > myclass : TMyUnitClass; /// class defined in myunit (if can be a > > variable outside the function) > > > > begin > > result := -1 ; > > myclass := TMyUnitClass.Create; > > result := myclass.myunitclassfunction() ; // a function of > > myclass > > end; > > > > exports > > mylibclassfunction ; > > > > begin > > end. > > > > Now what I would like in the compiler is a warning: potential memory > leak at myclass := TMyUnitClass.Create; > > ;)
Yep, before to get that sympathetic message, i changed the code, now all the class.create are done inside the unit used by the library and i do not get the message... Thanks.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal