I am looking at adding a WCF service to my product, and it looks like TChart is interfering somehow. I have attached a sample project that reproduces the problem.
If you run the code with the line that creates a TChart commented out, the program works just fine. If you comment in the line, you get a TimeoutException. The sample project has both the client & server code in the same process, but you get the same result if you have the code in different projects.
Creating a chart breaks my WCF service
Creating a chart breaks my WCF service
- Attachments
-
- TeeChartWCF.zip
- (4.32 KiB) Downloaded 477 times
Re: Creating a chart breaks my WCF service
Hello UserLs,
We haven't forgotten you. We'll answer you asap.
Thanks,
We haven't forgotten you. We'll answer you asap.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Creating a chart breaks my WCF service
I found a fix for this. It ended up that as part of creating a TChart, a form would get created, which would set the SynchronizationContext. Since I don't care to have all of the server call synchronized with the UI thread, I just turned off the UseSynchronizationContext, and everything works now.