Hi all,
I am using VC++ 2003 .net and teechart .net beta
this is really weird. I am not sure if it's teechart problem or vc .net bug
Add a teechart, and some function in the form, whenever I reference pointer or recast, ex (*mat)(i,j) or (*char) in any of funtion. The tChart1->ShowEditor() will raise a unhandled exception at runtime, saying "DragDrop registration failed."
This must be a compile issue, 'cause the error is not raised by those function which contain the pointer code, but the ShowEditor(). And even I don't call those function, I still get that error. Funny, without ShowEditor(), the code works.
Anyway, I don't get error if I compile it in release mode.
Just curious if anybody had this before, or is it a known issue?
Best Regards
Fang
p.s By the way, teechart .net won't compile for 2005 vc++ .net express
ShowEditor unhandled exception issue
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Fang,
Many thanks!
Mmm ... well, I've done some extensive tests adding functions into a designtime chart using the chart editor and have found a small problem which I have corrected. The problem was that some of the teechart code in the InitializeComponent() method wasn't correct having clicked on the "Apply" button in the datasource tab. I don't know if this is what was happening with you but would be very interested to find out; could you please give me some step by step instructions on how to reproduce the error at here?Just curious if anybody had this before, or is it a known issue?
No, we have created a teechart.dll (version 2, that is) which we compiled under the .NET Framework v2.0 but it is not publicly available at present.p.s By the way, teechart .net won't compile for 2005 vc++ .net express
Many thanks!
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
this must have something to do with the matrix(from boost.org) i am using. The following code had the above problem in debug mode. But I can't reproduce it if I replace the matrix_f to std::vector or other simple pointer. So maybe the template inside matrix messed up sth
typedef boost::numeric::ublas::matrix<float_t> matrix_f;
private: Steema::TeeChart::TChart * tChart1;
private: System::Windows::Forms::Button * button1;
private: Steema::TeeChart::Styles::ColorGrid * colorGrid1;
private:
matrix_f *m_Mat;
public:
Form1(void)
{
InitializeComponent();
m_Mat=new matrix_f();
}
private:
System::Void FillSeries()
{
colorGrid1->Clear();
for (size_t i=0; i<m_Mat->size1(); i++)
for (size_t j=0; j<m_Mat->size2(); j++)
colorGrid1->Add(i,(*m_Mat)(i,j),j);
}
private:
System::Void button1_Click(System::Object * sender, System::EventArgs * e)
{
tChart1->ShowEditor();
}
typedef boost::numeric::ublas::matrix<float_t> matrix_f;
private: Steema::TeeChart::TChart * tChart1;
private: System::Windows::Forms::Button * button1;
private: Steema::TeeChart::Styles::ColorGrid * colorGrid1;
private:
matrix_f *m_Mat;
public:
Form1(void)
{
InitializeComponent();
m_Mat=new matrix_f();
}
private:
System::Void FillSeries()
{
colorGrid1->Clear();
for (size_t i=0; i<m_Mat->size1(); i++)
for (size_t j=0; j<m_Mat->size2(); j++)
colorGrid1->Add(i,(*m_Mat)(i,j),j);
}
private:
System::Void button1_Click(System::Object * sender, System::EventArgs * e)
{
tChart1->ShowEditor();
}