Page 1 of 2

Getting an OS opperation failed error.

Posted: Wed Mar 14, 2007 3:02 pm
by 9337510
Hi I keep getting an OS error when i try an look at the general tab.

The message is "A call to an OS function failed." I am using d2005 with teechart version 7.07., on XP

If I double click the chart the editor pops up, clicking on the general tab causes the failure - any ideas?

I cant track it down at all. It might be related to the tms advofficeradiogroup component, but I am not sure.

Richard

Posted: Wed Mar 14, 2007 3:06 pm
by narcis
Hi Richard,

Have you tried creating an application where the TMS component is disabled and check if the problem is also present there?

Thanks in advance.

Posted: Wed Mar 14, 2007 4:54 pm
by 9337510
Yes - it usually fixes the problem - still occurs very occasionally - I have talked to TMS but they do not have a copy of teechart. they have modified the bit of code that we isolated but it does not seem to have sorted it.

It seems to be an interaction between the two components - Do you have copy of tms? Otherwise I dont know how to proceed!

Richard

Posted: Thu Mar 15, 2007 2:07 am
by 9337233
I have also encountered this problem. In my case, the raidogroup was on a TMS AdvToolPanel, you know the slide out panel. What I found is that the chart editor fails if the panel containing the raidogroupbox(it can be just a plain delphi raidogroup control) is slid out BEFORE initially displaying the editor. IF the chart editor is displayed first, before the raidogroup is displayed, the editor ALWAYS works. It seems that the problem might be in the way the editor is created and populated. I had a similar probelm in the past where TChart was creating unnamed components at run time which conflicted with a TMS control, I suspect something similar may be happening here. I would be very interested in seeing this resolved.

Thanks

Dan Sox

Posted: Mon Mar 19, 2007 10:31 am
by narcis
Hi Richard,

We don't have TMS components either. Anyway we could try using an evaluation version of their components, if available. If not, we could try contacting TMS Software to see what can be done on that.

It would be very helpful if you let us know which is the exact TMS Software product we should use and and example project we can run "as-is" to reproduce the problem here.

You can post your files at our upload page.

Thanks in advance.

Posted: Wed Mar 21, 2007 9:38 am
by 9337510
Ok I will send you a some source code and an exe. Thanks

Posted: Wed Mar 21, 2007 9:59 am
by 9337510
I have sent a file to you - I am using TMS Component pack version 4.2 (the latest) - currently on Delphi 2005 on XP.

Thanks

Richard

Posted: Thu Mar 22, 2007 10:06 am
by narcis
Hi Richard,

Thanks for the project. I tried replacing the TMS control for a Delphi radiogroup and couldn't reproduce the issue here using TeeChart Pro v7.07 VCL.

I've sent the project I used and its built .exe to your forums e-mail address. Could you please check if it works fine at your end and modify it so that we can reproduce the issue here?

Thanks in advance.

Posted: Thu Mar 22, 2007 10:19 am
by 9337510
It does appear to be an interaction between teechart and tms - Did you get the error with the exe I sent you?

could you try and download the trial? it is at
http://www.tmssoftware.com/aob.htm

Posted: Thu Mar 22, 2007 10:50 am
by narcis
Hi Richard,

Yes, I could reproduce the issue using the .exe you sent and also using the trial version you suggested.

We will investigate the issue and get back to you when we have further news.

Thanks for your collaboration.

Posted: Thu Mar 22, 2007 10:54 am
by 9337510
Thank you for your collaboration! It is always difficult when two different component companies are involved - you dont know which way to turn.

Richard

Posted: Tue Mar 27, 2007 10:12 am
by narcis
Hi Richard,

We have done some tests and debugged the project. The error we obtain is 1422, which refers to a combobox, but we think the error is wrong as TMS components are blocking TRadioGroup creation. This makes that all our editors that contain radio buttons (General, Legend, etc.) for some reason crash .

The crash is at TWinControl.CreateWnd in a TGroupButton instance, which is a base class o TRadioButton, for example, when creating the four radio buttons at Legend->Position->Position.

We would need to have TMS component source code to be able to comment out their code to see which is the exact problem. I've already informed TMS Components about this. You may want to contact them to follow up this issue.

Posted: Tue Mar 27, 2007 10:26 am
by 9337510
Thanks - I will give them an email. Hopefully we will get to the bottom of it soon!

Posted: Thu Mar 29, 2007 5:16 pm
by 9337233
Narcis,

I have the source for the TMS components as well as the source for Teechart. If you send me the test project and a few instructions I would be quite happy to test your hypothesis, as this problem has plagued me for some time.

Dan Sox

Posted: Fri Mar 30, 2007 7:30 am
by narcis
Hi Dan,

Sure! I've just sent, to your forums e-mail address, the project Richard sent me with some modifications to be able to run it here. If necessary I can also sent the original project Richard sent.

Thanks for your collaboration!