Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Multiple reports problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple reports problem

 Post Reply Post Reply
Author
Message
boltej View Drop Down
Newbie
Newbie


Joined: 12 August 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote boltej Quote  Post ReplyReply Direct Link To This Post Topic: Multiple reports problem
    Posted: 12 August 2005 at 2:36pm

I have a fairly complex app that I am trying to use two CXTPReportControls in.  The basic structure of the app is such that each report control lives inside a separate container window, with both container windows living inside a CView-derived window.  When I instantiate either report control without the other, everything works fine.  When I try to instantiate both controls, the app fails with a CMyView->CreateObject() failure.  It looks like the second report control isn't able to be allocated.  The usual suspects (out of memory, DECLARE_DYNAMIC/IMPLEMENT_DYNAMIC included in all containing, etc) all check out.  This happens even if the report controls do nothing, not even get Create()'ed.

Any ideas?

Thanks...

Back to Top
Hazelnut View Drop Down
Groupie
Groupie
Avatar

Joined: 22 July 2005
Location: United States
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hazelnut Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2005 at 12:42pm
Wild guess, the control ID's are the same for both controls?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.077 seconds.