Xref: utzoo comp.sys.ibm.pc.programmer:941 alt.msdos.programmer:1484 Path: utzoo!utgpu!watserv1!watmath!att!cbnewse!miguelr From: miguelr@cbnewse.ATT.COM (miguel.a.rivera) Newsgroups: comp.sys.ibm.pc.programmer,alt.msdos.programmer Subject: TurboC getimage() function Keywords: putimage(),imagesize(),getimage() Message-ID: <14197@cbnewse.ATT.COM> Date: 13 Apr 90 14:09:10 GMT Organization: AT&T Bell Laboratories Lines: 14 Hi everybody, I am having problems with the imagesize() function in TurboC. The problem is that when I use this function the size of the image that the function return is smaller than the actual size of memory needed to store the image. After get the size needed, I use malloc() to allocate memory to store the image. When I execute getimage() using the pointer returned by malloc as a buffer, it overwrite some of my memory (and some times CRASH my machine). Those functions are used for graphic mode. Actually, I am using an EGA card. Did anybody have the same problem? Thanks in advance, Miguel A. Rivera