TeeChart.dll loading always causes apps to hang for 30 secs
TeeChart.dll loading always causes apps to hang for 30 secs
All versions of TeeChart .NET v3 cause apps on a LAN to hang for 30 seconds while teechart.dll attempts to access the internet. This is obviously a problem for users expecting sub-second responses.
By military requirements, our systems are NOT connected to the internet. Attempting to access the internet without the user's permission is extremely bad practice. Attempting to access the internet when no connection exists is unacceptable practice.
By military requirements, our systems are NOT connected to the internet. Attempting to access the internet without the user's permission is extremely bad practice. Attempting to access the internet when no connection exists is unacceptable practice.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi georgez,
Could you please send us some code with which we can reproduce the problem? It would also be nice if you could tell us how you detected the issue. Did you use a network sniffer such as wireshark?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Could you please send us some code with which we can reproduce the problem? It would also be nice if you could tell us how you detected the issue. Did you use a network sniffer such as wireshark?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
We know this is a TeeChart .NET v3 issue because:
1. It ALWAYS occurs when the FIRST chart is created.
2. It NEVER occurs when other charts are created during the same session.
3. It did not occur with v2.
We are familiar with this issue since, with every config change, Visual Studio help resets itself to use 'online first', and takes several minutes to load, or even the options.help page. After we have enough patience the make the one change to 'local only' the help loads much faster.
1. It ALWAYS occurs when the FIRST chart is created.
2. It NEVER occurs when other charts are created during the same session.
3. It did not occur with v2.
We are familiar with this issue since, with every config change, Visual Studio help resets itself to use 'online first', and takes several minutes to load, or even the options.help page. After we have enough patience the make the one change to 'local only' the help loads much faster.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi georgez,
We are not able to reproduce the issue here. This is very strange and we are wondering why this occurs since there isn't any code line that makes an empty TeeChart connect to the internet. Moreover, we haven't heard of this complaint from other users.
You may want to check TeeChart's constructor yourself using Lutz Roeder's .NET reflector. We believe from your customer code, that your organisation may already have a 100% sourcecode license of TeeChart should anyone in your organisation would like to fully study the code or run it from source to test your hypothesis.
Can you reproduce the issue using an empty chart? Which tool are you using to check that your TeeChart application is connecting to the internet?
Thanks in advance.
We are not able to reproduce the issue here. This is very strange and we are wondering why this occurs since there isn't any code line that makes an empty TeeChart connect to the internet. Moreover, we haven't heard of this complaint from other users.
You may want to check TeeChart's constructor yourself using Lutz Roeder's .NET reflector. We believe from your customer code, that your organisation may already have a 100% sourcecode license of TeeChart should anyone in your organisation would like to fully study the code or run it from source to test your hypothesis.
Can you reproduce the issue using an empty chart? Which tool are you using to check that your TeeChart application is connecting to the internet?
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
Narcis,
Speaking of themes, regarding your example in my Themes tab posting, there is no reason for a pre-built app the size of that one to take ten seconds to appear. We are creating chart, TeeCommander and ChartEditor at the same time. Maybe that compounds the delays to 30 seconds.
Regards,
george
You might ponder this again with respect to your themes code files.there isn't any code line that makes an empty TeeChart connect to the internet
Speaking of themes, regarding your example in my Themes tab posting, there is no reason for a pre-built app the size of that one to take ten seconds to appear. We are creating chart, TeeCommander and ChartEditor at the same time. Maybe that compounds the delays to 30 seconds.
Regards,
george
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hello,
Well, I've answered your Themes tab posting and will wait for your reply in that thread before discussing the issue further with you, if that's ok.georgez wrote: Speaking of themes, regarding your example in my Themes tab posting, there is no reason for a pre-built app the size of that one to take ten seconds to appear. We are creating chart, TeeCommander and ChartEditor at the same time. Maybe that compounds the delays to 30 seconds.
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/
Hello George,
Re. delays to 30 seconds
Perhaps there are load delay factors related to remote locations of assemblies you are using in your application? I would expect time to load to be proportional to the time it takes to first load the TeeChart assembly to memory (3.3MB + any other project assemblies). We'd need to see some more information about the specifics of your project type to be able to comment in detail on other factors. As a cross-check you can reproduce most of the tasks you describe by running the TeeChart demo shipped with the installable product (accessible via TeeChart's Windows menu space). Please check and confirm whether you are experiencing similar time delays with that application.
Re. You question on "there isn't any code line that makes an empty TeeChart connect to the internet" You might ponder this again with respect to your themes code files.
I may not have understood your question correctly, if so please clarify what you need to know here. TeeChart Themes do not call Internet hosted files. TeeChart includes code that loads System.Net.WebClient for network (or Internet) access at the following locations:
- Import of TeeChart template (when receiving a URL headed 'http://' from the client)
- TextSource import (again when receiving a URL headed 'http://' from the client)
Unless you have specifically coded calls to URL hosted files via one of the two techniques TeeChart does not make any calls to the Internet.
Narcís' post mentions that you may have TeeChart sourcecode, that would be a good way to run your tests to isolate any problem areas.
Regards,
Marc Meumann
Re. delays to 30 seconds
Perhaps there are load delay factors related to remote locations of assemblies you are using in your application? I would expect time to load to be proportional to the time it takes to first load the TeeChart assembly to memory (3.3MB + any other project assemblies). We'd need to see some more information about the specifics of your project type to be able to comment in detail on other factors. As a cross-check you can reproduce most of the tasks you describe by running the TeeChart demo shipped with the installable product (accessible via TeeChart's Windows menu space). Please check and confirm whether you are experiencing similar time delays with that application.
Re. You question on "there isn't any code line that makes an empty TeeChart connect to the internet" You might ponder this again with respect to your themes code files.
I may not have understood your question correctly, if so please clarify what you need to know here. TeeChart Themes do not call Internet hosted files. TeeChart includes code that loads System.Net.WebClient for network (or Internet) access at the following locations:
- Import of TeeChart template (when receiving a URL headed 'http://' from the client)
- TextSource import (again when receiving a URL headed 'http://' from the client)
Unless you have specifically coded calls to URL hosted files via one of the two techniques TeeChart does not make any calls to the Internet.
Narcís' post mentions that you may have TeeChart sourcecode, that would be a good way to run your tests to isolate any problem areas.
Regards,
Marc Meumann
Steema Support
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hello,
I've opened the source in VS2008 and done a search for "DefaultTheme" without matching case and without matching whole word. No reference is made to "DefaultTheme.xml". I then did a Windows search on the source code and the binary folder for "DefaultTheme.xml"; there is no file by that name in either of those folders. I then opened the TeeChart.dll within the binary folder using Reflector and searched all the Resources; there is no resource in TeeChart.dll called "DefaultTheme.xml".
Could you please tell us the origin of the DefaultTheme.xml you refer to?
Would you please be so kind as to tell us whether the examples in the Features Demo (in a default install under C:\Program Files\Steema Software\TeeChart for .NET v3\Examples\DemoProject\bin\ExecutableDemo\TeeChartNetExamples.exe) also display this 30 second delay?georgez wrote:Once again guys, the issue appeared immediately upon making the single change of TeeChart .NET v2 to TeeChart .NET v3.
Well, I've just run the latest publicly available source code installer and binary installer (that is, the "normal" full release version) on my machine (v3.5.3105.20152).georgez wrote:BTW, what does the second line of DefaultTheme.xml in the source code do?
I've opened the source in VS2008 and done a search for "DefaultTheme" without matching case and without matching whole word. No reference is made to "DefaultTheme.xml". I then did a Windows search on the source code and the binary folder for "DefaultTheme.xml"; there is no file by that name in either of those folders. I then opened the TeeChart.dll within the binary folder using Reflector and searched all the Resources; there is no resource in TeeChart.dll called "DefaultTheme.xml".
Could you please tell us the origin of the DefaultTheme.xml you refer to?
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/
Christopher,
C:\Program Files\Steema Software\TeeChart for .NET v3 Full Source Code\Sources\TeeChart\Drawing\DefaultTheme.xml
Regards,
george
I counted the delay from form border showing to form complete display as at least 15 seconds for running the exe as supplied.Would you please be so kind as to tell us whether the examples in the Features Demo (in a default install under C:\Program Files\Steema Software\TeeChart for .NET v3\Examples\DemoProject\bin\ExecutableDemo\TeeChartNetExamples.exe) also display this 30 second delay?
Sorry to hear of the problems you are having with your search tools....done a search for "DefaultTheme"...
C:\Program Files\Steema Software\TeeChart for .NET v3 Full Source Code\Sources\TeeChart\Drawing\DefaultTheme.xml
Regards,
george
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hello,
Can you please paste in your machine characteristics for comparison?
Great, that means that the feature demo executes nearly twice as fast. Here, from the border showing to form complete display takes just over a second. Here are the characteristics of the machine I work on:georgez wrote: I counted the delay from form border showing to form complete display as at least 15 seconds for running the exe as supplied.
Code: Select all
Host Name: SHUNYATA
OS Name: Microsoft® Windows VistaT Ultimate
OS Version: 6.0.6001 Service Pack 1 Build 6001
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Original Install Date: 06/03/2008, 09:28:20
System Boot Time: 30/07/2008, 08:08:10
System Manufacturer: PACKARD BELL BV
System Model: IMEDIA X1609
System Type: X86-based PC
Processor(s): 1 Processor(s) Installed.
[01]: x64 Family 6 Model 15 Stepping 7 GenuineIntel ~
2400 Mhz
BIOS Version: Phoenix Technologies, LTD PBSFC2MB.P06, 20/07/2007
Total Physical Memory: 2.046 MB
Available Physical Memory: 1.033 MB
Page File: Max Size: 4.341 MB
Page File: Available: 1.568 MB
Page File: In Use: 2.773 MB
Page File Location(s): C:\pagefile.sys
Can you please paste in your machine characteristics for comparison?
That file is not in the directory you suggest on my machine. It may have been put there by an older version of TeeChart.NET source code. Can you please de-install the source code version you have, delete the directories from "Program Files" and reinstall? Which version of the source code installer are you using?georgez wrote:Sorry to hear of the problems you are having with your search tools.
C:\Program Files\Steema Software\TeeChart for .NET v3 Full Source Code\Sources\TeeChart\Drawing\DefaultTheme.xml
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/
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hello!
Ok, I suggest that in the next step we should try running each other's feature demo executables. Here is a link to the one I've been using.
How long does it take for the chart to appear when you run this exe? If it takes significantly longer on your machine than on my machine then I can only assume that the issue exists with the configuration of your machine/.NET runtime and does not exist within the IL-code contained in the exe or the dlls the exe calls. Can you think of another explanation?
You're very welcome!georgez wrote:Dual Pentium, 2.8Ghz, 2GB
3.5.3105.20152
Thanks to the whole Steema crew!
Ok, I suggest that in the next step we should try running each other's feature demo executables. Here is a link to the one I've been using.
How long does it take for the chart to appear when you run this exe? If it takes significantly longer on your machine than on my machine then I can only assume that the issue exists with the configuration of your machine/.NET runtime and does not exist within the IL-code contained in the exe or the dlls the exe calls. Can you think of another explanation?
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/
-
- Newbie
- Posts: 57
- Joined: Wed Jan 30, 2008 12:00 am
Re: TeeChart.dll loading always causes apps to hang for 30 secs
Dear Sirs,
I also encounters a similar problem. My .exe hangs for 40~50 seconds when it runs to the following code.
Here is specification of my server:
Win2k Server sp4, .Net Framwork 2.0, VS2005 not installed
TeeChart Version : TeeChart for .NET 3.5.3498.27366
But, after I installed VS2005 in the server, the .exe doe not hang at the line any more.
I found that the previous discussions end at 2008 with no answer, is there any one could provide more information/support/hint to overcome the hang issue? Thanks a lot in advance.
I also encounters a similar problem. My .exe hangs for 40~50 seconds when it runs to the following code.
Code: Select all
Dim mTeeChart as new Steema.TeeChart.TChart(me)
Win2k Server sp4, .Net Framwork 2.0, VS2005 not installed
TeeChart Version : TeeChart for .NET 3.5.3498.27366
But, after I installed VS2005 in the server, the .exe doe not hang at the line any more.
I found that the previous discussions end at 2008 with no answer, is there any one could provide more information/support/hint to overcome the hang issue? Thanks a lot in advance.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: TeeChart.dll loading always causes apps to hang for 30 secs
Hi Chris.CHWU,
Does your .NET Framework 2.0 installation have all updates available installed? Can you please try running the tests Christopher Ireland suggested earlier in the thread?
Thanks in advance.
Does your .NET Framework 2.0 installation have all updates available installed? Can you please try running the tests Christopher Ireland suggested earlier in the thread?
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |