Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SDI application screws it's views...

Status
Not open for further replies.

Makom

Programmer
Sep 18, 2000
1
GB
Hi!
I'm writing a 3D modeller in VC++6 and I'm not doing too bad for a 1st effort.
I have my 3 ortho views, I can add/delete and move vertices in each view correctly.
My SDI has a static split view making a 2x2 pane view. Each has a light grey grid drawn into it, and red axes marking the origin.
Now, when I select a vertex and move it around the active view pane with the mouse, after a random number of move's the grid and the origin start drawing in black, and the whole app slows down.
When I close the app, the dialog box eventually appears in funny font (though still readable), and the window caption bar is white (instead of blue). VC++'s editor also loses its blue caption bar, and some of the toolbar icon's have been replaced with a random item from my system tray.
?
I /know/ this must be a memory leak problem involved with redrawing the view - but I don't know how to find it.

Whenever I modify the document through a view I UpdateAllViews(NULL) buteven if I only update the current view, this bug still happens.

My code is based on the MyDraw app in the LVC++6N book by Chuck Spar.
Any help appreciated - will post code if necessary : I didn't want to dump a huge opening mail on the forum! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top