Problem with Metafile Functions
I have been using Metafile Functions to create several pictures. I have been showing those pictures in a dialog box.
To creat the pictures I have used the functions:
hdcEMF = CreateEnhMetaFile(Null,TRIM &(szTitleName)//'.emf'C,Null,"MetaSketchEMF ")
hemf = CloseEnhMetaFile (hdcEMF)
bret = DeleteEnhMetaFile (hemf)
To show the pictures I have used the following functions:
hEmf = GetEnhMetaFile(szTitleName)
ret = SendMessage(GetDlgItem(hdlg, IDC_GraficoEMF), & STM_SETIMAGE, IMAGE_ENHMETAFILE,hEmf(IncTempo))
lret = DeleteEnhMetaFile (hemf)
The problem happen during the program execution. When the picture is created or shown, it occur the drastic decrease of the available system memory. After that, the functions fails. Is there any way to avoid this kind of problem. How can I increase or maintain constant the system memory during the program execution ?