Results 1 to 4 of 4

Thread: PAINTSTRUCT ; BeginPaint; EndPaint ( x64 bit )

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2013
    Posts
    658

    PAINTSTRUCT ; BeginPaint; EndPaint ( x64 bit )

    Hi all,

    I have written some code that handles the WM_PAINT in order to do some custom drawing on a subclassed userform.

    The code works fine as expected in x32 but, in a x64 process, the code freezes after a couple of hundred cycles.

    All the API declarations and structures are correctly adapted\resized for x64bit and each used GDI and GDIPlus object is properly released after each cycle to prevent any memory leaks.

    The code is quite extensive that's why I am not posting it here.

    So the question is : Does anybody know why there is no problem running the code in x32bit but freezes in x64bit ? Is this a known bug or something ?

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,854

    Re: PAINTSTRUCT ; BeginPaint; EndPaint ( x64 bit )

    This must be Office UserForms again.
    To my knowledge VB6 can't deal with 64bit processes

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2013
    Posts
    658

    Re: PAINTSTRUCT ; BeginPaint; EndPaint ( x64 bit )

    Quote Originally Posted by Arnoutdv View Post
    This must be Office UserForms again.
    To my knowledge VB6 can't deal with 64bit processes
    Yes, but the question is generally API related .

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2013
    Posts
    658

    Re: PAINTSTRUCT ; BeginPaint; EndPaint ( x64 bit )

    Found what was causing the problem ... It was a DoEvents statement that I had inside the WM_PAINT handler ... I removed it and the issue went away.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width