Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with winocc.cpp, line 374 (Read 3739 times)
Joanna
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 15th, 2006
Problem with winocc.cpp, line 374
Jul 17th, 2006 at 12:25am
Print Post  
Hi, Stoya
I have another problem again, it is as follow:
When I create a FlowChartX object in the OnCreate() function of CMyView, and run the system there will be an error pop out as follow:
"Debug Assertion Failed, File winocc.cpp, line 374"

And whe I go to that line, it is as follow:
ASSERT(m_pCtrlSite != NULL);//Not an OLE control

Why there will be such a problem? And how can I handle with it?
Thank you, hope for your help!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with winocc.cpp, line 374
Reply #1 - Jul 17th, 2006 at 6:36am
Print Post  
Hi,

If you create the control dynamically, e.g. through the MFC CFlowChart::Create method, you might have to specify the FlowChartX runtime license key as parameter to that method. If you need such key, please contact me by email.

If that happens on your development PC where FlowChartX is installed, then probably there's another reason for the exception - is there any stack trace shown in the VS debugger?

Stoyan
  
Back to top
 
IP Logged
 
Joanna
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 15th, 2006
Re: Problem with winocc.cpp, line 374
Reply #2 - Jul 17th, 2006 at 10:16am
Print Post  
Yes, I create that two FlowChart Object dynamically, and intend to insert them into two tab pages. I use follow code to create the FlowChart Object in the OnCreate() of CMyView as follow:

if(!m_FlowChart.Create(NULL, WS_VISIBLE, CRect(0, 0, 0, 0), this, IDC_FLOWCHART))
return -1;      

And my emial is: jhlong@trane.com
Please send the runtime license key to this mailbox, thank you very much! And by the way, how to use these runtime license? Smiley

And what is the stack trace shown in the VS debugger? My program doesn't gave out any error or warning during complie and debug, but when it run, it will give that error: "Debug Assertion Failed, File winocc.cpp, line 374" 

Thank you in advanced!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint