Author Topic: Dialog stops refreshing  (Read 2069 times)

stevengraff

  • Sr. Member
  • ****
  • Posts: 271
Dialog stops refreshing
« on: June 02, 2014, 06:58:21 am »
http://screencast.com/t/GTdHRKeEz7

(As shown in this video) I have a dialog with a callback routine that queries a database, then processes the names and addresses for the purpose of printing labels. During the processing, I provide feedback to the user by way of Jim's progress bar, and by updating a static text control.

For some reason after a few hundred updates, the updating stops (though the actual processing continues in the background). It doesn't seem to matter whether I'm updating the progress bar, the text, or both.

Probably not unrelated... I provide the user the ability to press the shift key to interrupt processing. If the user does interrupt the process, the updating resumes upon the user declining to exit.

Is there some kind of graphics buffer that's getting filled up? and is there anything I can do about it?

JTaylor

  • Pundit
  • *****
  • Posts: 927
    • Data & Stuff Inc.
Re: Dialog stops refreshing
« Reply #1 on: June 02, 2014, 07:06:33 am »
Are you disabling the dialog using DialogProcOptions?  If not, you will want to do that and it should solve your problem.

Jim

stevengraff

  • Sr. Member
  • ****
  • Posts: 271
Re: Dialog stops refreshing
« Reply #2 on: June 02, 2014, 07:10:17 am »
Indeed it does, thank you!