Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Code-o-mat12-Jun-10 7:00
Code-o-mat12-Jun-10 7:00 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Robert Inventor12-Jun-10 15:18
Robert Inventor12-Jun-10 15:18 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Robert Inventor12-Jun-10 15:34
Robert Inventor12-Jun-10 15:34 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly [modified] Pin
Robert Inventor12-Jun-10 15:35
Robert Inventor12-Jun-10 15:35 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Code-o-mat12-Jun-10 23:08
Code-o-mat12-Jun-10 23:08 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Robert Inventor13-Jun-10 5:40
Robert Inventor13-Jun-10 5:40 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Code-o-mat13-Jun-10 5:53
Code-o-mat13-Jun-10 5:53 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Robert Inventor13-Jun-10 10:50
Robert Inventor13-Jun-10 10:50 
Thanks, just tried that, HRESULT always 0. Also picture loads successfully (except when running under Purify that is).

Ran it with Purify with CoInitialize, and also OleInitialize. Still got an unhandled exception in the same place, didn't fix it. Found out that the reason it doesn't happen under Purify with my other programs is because they try LoadImage first - when I adapted one of them to make sure it always uses OleLoadPicturePath then got an access violation again when running under Purify.

Did a google search and some code examples don't use anything, some use CoInitialize and a few use OleInitialize but seems to be rarer.

Anyway will just avoid this bit of code for now and see if the bug still occcurs.

With it skipped, the program was basically error free in Purify except for a memory related warning during WM_PASTE operations pasting text into the rich edit, can't remember what it was now though and forgot to write it down - anyway doesn't give a code location in evaluation version of Purify.

Maybe the three day trial of insure++ will give more information when I have time to give it a go.

Thanks, do say if you or anyone reading this has any other ideas and I'll continue to investigate and will be sure to post here if / when I fix it.
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Code-o-mat13-Jun-10 11:14
Code-o-mat13-Jun-10 11:14 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Robert Inventor20-Jun-10 6:03
Robert Inventor20-Jun-10 6:03 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Code-o-mat20-Jun-10 7:43
Code-o-mat20-Jun-10 7:43 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Robert Inventor3-Jul-10 6:30
Robert Inventor3-Jul-10 6:30 
GeneralRe: Glitchy mouse clicks out of sync. with position of caret in RichEdit control and text displayed incorrectly Pin
Code-o-mat3-Jul-10 6:43
Code-o-mat3-Jul-10 6:43 
QuestionMs PowerPoint Pin
MsmVc10-Jun-10 23:21
MsmVc10-Jun-10 23:21 
AnswerRe: Ms PowerPoint Pin
Cool_Dev10-Jun-10 23:55
Cool_Dev10-Jun-10 23:55 
GeneralRe: Ms PowerPoint [modified] Pin
MsmVc11-Jun-10 0:03
MsmVc11-Jun-10 0:03 
GeneralRe: Ms PowerPoint Pin
Cool_Dev11-Jun-10 0:18
Cool_Dev11-Jun-10 0:18 
GeneralRe: Ms PowerPoint Pin
MsmVc11-Jun-10 0:23
MsmVc11-Jun-10 0:23 
GeneralRe: Ms PowerPoint Pin
Cool_Dev11-Jun-10 0:41
Cool_Dev11-Jun-10 0:41 
GeneralRe: Ms PowerPoint Pin
MsmVc11-Jun-10 0:43
MsmVc11-Jun-10 0:43 
GeneralRe: Ms PowerPoint Pin
MsmVc11-Jun-10 0:47
MsmVc11-Jun-10 0:47 
GeneralRe: Ms PowerPoint Pin
Cool_Dev11-Jun-10 0:48
Cool_Dev11-Jun-10 0:48 
GeneralRe: Ms PowerPoint Pin
MsmVc11-Jun-10 0:50
MsmVc11-Jun-10 0:50 
GeneralRe: Ms PowerPoint Pin
Cool_Dev11-Jun-10 1:01
Cool_Dev11-Jun-10 1:01 
GeneralRe: Ms PowerPoint Pin
MsmVc11-Jun-10 1:03
MsmVc11-Jun-10 1:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.