what could prevent an Invalidate() from re-Drawing?

L

Lloyd Dupont

In most of my key / mouse event I use Invalidate() (wich stack, post &
coallesce repaint query)
Anyway for some reason there is one case where my Invalidate() call (during
a mouse drag operation) do nothing at all.
Other mouse drag works well.
And even if I stay motionless (mouse button still pushed), I could see CPU
got 0% activity, but the re-drawing doesn't happen...

In the end I called Refresh() in this case but I'm still.... flabergasted?

Any idea why this could ever be?

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
 
L

Lloyd Dupont

"Help, my code doesn't work, what is the problem?"I don't know. you need to provide more information, just like I did ^_^
But I think it's a bug, if that can help you?
 
T

TC

Sorry, I didn't mean to be rude, I somewhat regretted my post as soon
as I sent it.

But, you really have not given anyone enough information to even hazard
a guess at the cause of your problem. Essentially, you've just said
that your code isn't working, what is the reason? No one could possibly
hazard an answer, IMHO, on the bare bones that your post provided. You
don't even say what language you're coding it in! It's like me saying
"My car doesn't work, what is the problem?" Who can tell - even an
expert mechanic from the firm who designed the car in the first place -
without a bit more information?

I know very little about .NET so I probably can not help you myself.
But I'm sure if you post again, with more information, and perhaps a
few code snippets, someone is sure to be able to help. Look at it from
the viewpoint of someione who has absolutely no clue what you are doing
or how you are trying to do it.

Cheers,
TC
 
L

Lloyd Dupont

1st: it's .NET, who care about the language!

2nd: there isn't much to tell.
I have put a breakpoint in OnMouseMoved()
Invalidate() is called.
I have put a Console.WriteLine("something") in OnPaint(), it nevers show up
(after this particular event).

what else could I say?

Maybe there is some memory corruption (huge legacy library in an .NET
incompatible language, + huge managedC++ wiring to make it work), but that's
the only glitch, so that's kind of weird....
 
T

TC

Option #1: you have given enough information for someone to answer your
question.

Opinion #2: you haven't.

Indisputable Fact: No-one has answered your question.

Hmm, lets' do some logic on that ...

TC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

get key state 1
inspector window problem 1
Japaneese IME 4
track app activation 2
event when Z-order change? 3
AnimateWindow and popup window 1
DirectX & C# 2.0 2
winform problem 2

Top