GDI+ graphics sometimes not rendering

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
bmcclure
Posts: 31
Joined: 29 May 2018, 22:11
Location: West Virginia, USA
Contact:

GDI+ graphics sometimes not rendering

03 Mar 2021, 02:25

I am creating faux buttons in my application by adding blank Picture controls and then using GDI+ to draw over the top of them.

This usually works, but randomly, no buttons on any of my GUIs render. This seems weird because all of the buttons are rendered completely independently--the only thing they have in common is that they use the same GDI+ library functions.

Whenever I use MsgBox commands to debug things, then once I click OK on the MsgBox the buttons always render properly. This leads me to believe there must be some race condition that the MsgBox offsets.

However, tracking it down is proving difficult. My application is very large, and I have checked everything I can think of so far. At this point, I am trying to figure out what kinds of things I should even be checking for.

Is there a general reason anyone knows that could cause GDI+ to fail to render graphics silently? Could something related to GDI+ not be fully loaded immediately when my application starts?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Araphen, doanmvu, mamo691 and 361 guests