BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Solved - error 87, the parameter is incorrect

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Russ Holcomb
Guest





PostPosted: Mon Aug 29, 2005 2:25 pm    Post subject: Solved - error 87, the parameter is incorrect Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.