-
Jan 11th, 2021, 12:14 PM
#1
Thread Starter
Fanatic Member
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 ?
-
Jan 11th, 2021, 12:31 PM
#2
Re: PAINTSTRUCT ; BeginPaint; EndPaint ( x64 bit )
This must be Office UserForms again.
To my knowledge VB6 can't deal with 64bit processes
-
Jan 11th, 2021, 02:19 PM
#3
Thread Starter
Fanatic Member
Re: PAINTSTRUCT ; BeginPaint; EndPaint ( x64 bit )
Originally Posted by Arnoutdv
This must be Office UserForms again.
To my knowledge VB6 can't deal with 64bit processes
Yes, but the question is generally API related .
-
Jan 11th, 2021, 06:29 PM
#4
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|