I have an win32 app built with MSVS2005. realloc() is
failing consistently
when being called and returning an error 22 (EINVAL Invalid
argument). The
original block allocated was 65535, the new block attempting
to realloc is
131070. Plenty of memory available, no reason it should
fail.
Upon some further thought, it occurs to me that I'm calling
two DLL's built
on VC6. Doing a quick 'Depends' on them returns KERNEL32,
USER32, GDI32, &
COMDLG32.
Tracking down the programmer for the two DLL's I'm using is
not impossible,
but could be quite a lengthy process--also convincing him to
release the
code so I can compile it on MSVS2005 will not be trivial.
To the best of my knowledge, my exe isn't using any memory
allocated by the
DLL's that isn't also free'd by the DLL's. Assuming I'm
correct and I
haven't missed one, is there any chance this combination of
compiler's and
DLL's is causing my problem?
thanks,
Adam
------------------------------------------------------------
--------------
The MSVC list is hosted on a Windows NT(TM) machine running
L-Soft
international's LISTSERV(R) software. For
subscription/signoff info
and archives, see http:/
/peach.ease.lsoft.com/archives/msvc.html .
COPYRIGHT INFO:
http://peach.ease.lsoft.com/scripts/wa.ex
e?SHOWTPL=COPYRIGHT&L=MSVC
|