Subj : Error picked up by CodeGuard To : borland.public.cpp.borlandcpp From : "Richard Kavanagh" Date : Mon Jul 14 2003 11:40 pm Hello All, I apologise if I am sending this to the wrong newsgroup. Please redirect me. Codeguard picked up a resource leak on closing a small program that I am writing. Some observations: 1) I cannot find a numerically ordered list of Codeguard errors. 2) I am using Builder 5 with update 1. 3) The files referred to in the Codeguard log are system files which have something to do with the locale. 4) The address of Form1 is 0x01022CA8 which is a slightly bigger number than the memory that somehow did not get deleted. 5) The Codeguard log is below. Does anybody know what might be happening? Richard. (puzzled) Error 00025. 0x300010 (Thread 0x048C): Resource leak: The object (0x1021130) was never deleted The object (0x01021130) [size: 96 bytes] was created with new Call Tree: 0x004043E3(=AppController.exe:0x01:0033E3) G:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rw/ctype.h#494 0x00401ED5(=AppController.exe:0x01:000ED5) G:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rw/locimpl.h#454 0x00460875(=AppController.exe:0x01:05F875) 0x00401DC1(=AppController.exe:0x01:000DC1) G:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\rw/usefacet.h#72 0x00401B5B(=AppController.exe:0x01:000B5B) G:\PROGRAM FILES\BORLAND\CBUILDER5\INCLUDE\ios.h#375 0x0045740A(=AppController.exe:0x01:05640A) ------------------------------------------ .