Page 1 of 1

Export bug in v8.04

Posted: Mon Apr 20, 2009 1:22 pm
by 10551621
Hello,

I has a program that uses the export methods of teechart. when I recompiled the program with the v8.04 release all the export function calls made my program crashes !!

Here is an example.
void __fastcall TExpl::Button_SaveCSVClick(TObject *Sender)
{
Screen->Cursor = crHourGlass;
UnicodeString OutputFName =ChangeFileExt(MyFile_s, ".csv");
TSeriesDataText * xlf = new TSeriesDataText(Chart1,NULL);
xlf->IncludeHeader = true;
xlf->IncludeLabels = true;
xlf->TextDelimiter =';';
UnicodeString fn= DtrPath + OutputFName;
xlf->SaveToFile(fn);// the program crashes here
delete xlf;
Screen->Cursor = crDefault;
}

Any suggestion please ?

yaz

Posted: Tue Apr 21, 2009 10:42 am
by narcis
Hi yaz,

We are not able to reproduce the issue here. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Tue Apr 21, 2009 12:50 pm
by 10551621
narcis wrote:Hi yaz,

We are not able to reproduce the issue here. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
hello,
The problem was comming from old TeeUi and Tee.lib libraries in the link option of my project. I removed them by editing the .cbproj file and everything is working well. The exported text data file is now unicode. When openning it in a text editor I get a NULL char between each 2 char.
sorry for bothering u and thank u for your feedback.

Best regards

Posted: Tue Apr 21, 2009 1:04 pm
by narcis
Hi Yazou,

No problem. I'm glad to hear you could solve the problem. Unfortunately this is a common problem when upgrading old C++ Builder versions projects or when upgrading 3rd party components used on them.