Error 2290 on 9.1d

light

New Member
We have installed v9.1d for Win32 recently (previously used Progress version was 9.0b). And sometimes 2290 error occurs (Encountered image resource failure when realizing <widget>) when displaying folders. At this time folder’s upper borders are not displayed. Progress Kbase says about memory insufficiency. Client computer rebooting makes the error disappear for sometime but later error occurs again. Error appears on bounded group of computers, not on all the clients. Have somebody encountered such problem?
 
I've encountered a lot of problems on winME and the error 2290. Sometimes the same problem occured on win2000 with "heavy users" of the application. It was always the same : after a short while the application crashed with error 2290. After restarting the application: same story.

After extensive searching, I discovered that the error occured when the GDI resources reached 0 % (winME). This was due to a memory leak in my application !

Wrong code (example):
NO-RETURN-VALUE chCtrlDocImg:ImageList:ListImages:ADD(iIconTeller,szDoc,LOAD-PICTURE(szIconPath)).

It seems that the LOAD-PICTURE used like this generates a memory leak.

Right code:
DEFINE VAR chIcon AS COM-HANDLE NO-UNDO.
ASSIGN chIcon = LOAD-PICTURE(szIconPath).
NO-RETURN-VALUE chCtrlDocImg:ImageList:ListImages:ADD(iIconTeller,szDoc,chIcon).
RELEASE OBJECT chIcon.
 
Thanks for your answer, Xasp.
Things you say about are right. It's realy
memory leak. But I haven't any load-picture
method calls. So 2290 error may appear not only
with load-picture calls.
I have solved this problem by decreasing
Hardware Acceleration (Video Setting in Control
panel in Win98) to the minimum.
 
Back
Top