Red X appearing in C++/.Net windows application

S

Saad

Hi,

I have a legacy c++ application which uses wxWindows to create it's
GUI. We have ported it to VC 8 (2005) using the old syntax switch.

Then we added some new window which were purely dotnet.
Everything seems to work perfectly, but there is a little
problem............

We are getting a "Red X" in all the dotnet windows when following
happens......

There is a main window which is coded using wxWindows so its
unmanaged.....now when we open a dotnet window in it...and when we
move the dotnet window over the main unmanaged Wx based window...then
after a little while a Red X appears in either the grid, groupbox, or
in any container control of the dotnet form.....

We are assuming that it has something to do with the WndProc that we
have coded for the unmanaged widnows.....as the Red X has something to
do with painting....( i assume )

But, really we are unable to solve the problem....

Please tell me the reason of Red X and how to fix it........??

Thanks in advance.......
Saad
 
R

Ray Phillips

I had a similar problem with the red X's appearing on a Shell replacement I
coded in VB.net 2005. It turned out to be a multithreading problem. Two
threads were trying to draw the same control at the same time and it didn't
like that.

Do you have any threads that may be getting called twice?

-Ray
 

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

Top