 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Russ Holcomb Guest
|
Posted: Mon Aug 29, 2005 2:25 pm Post subject: Solved - error 87, the parameter is incorrect |
|
|
We spent a lot of time trying to track down the elusive error 87. By
spiting out log files we were eventually able to track it down to a windows
error in the CreateDIBSection api call.
Our app HAD a speedbutton on it that under certain conditions would flash
it's image to let people know something needed attention. This was handled
by loading the image from a resource file every 0.750 seconds or so. This
caused no problems as long as the application was not minimized. If it was
minimized, after some unknown and not consistent amount of time we would get
the error 87 message.
Our log files showed us that after the period of time the 2 pointers being
passed into the api were each returning 0. Thus the incorrect parameter.
Our only guess as to what is going on is that the minimized app is given low
GDI priority and this is causing the problem.
Our solution, we no longer flash the image, it now just has 2 states and
they don't even change if minimized.
Russ
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|