Skip to main content

File handler configuration parameters - overview

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

The system has a limit of 100 GDI objects (brushes, colours, fonts, etc.), and this limit can be reached when the same GDI object (e.g. font) is being created repeatedly, leading to the error message "Cannot map any more GDI objects - Internal Limit Reached"

Resolution:

If you are working with List View, and this error is occurring. This may have been a result of creating the font object over and over. The problem appears to be with the wmgadgetnotify method in the control program. It is actually creating a new font for every prepaint message.

You will need to make a small change in the SetFont method of the ...LVIEWITEM.CBL program. You will note there is only one single statement in that method, which is

     invoke lnkfont "deepcopy" returning itemfont

Please comment that statement out, and add instead:

     move lnkfont to itemfont

Old KB# 5420

#RMCOBOL
#ServerExpress
#COBOL
#netexpress
#AcuCobol

0 replies

Be the first to reply!