Support Board
Date/Time: Sat, 08 Feb 2025 08:09:11 +0000
[Programming Help] - Error creating chart image for sc.SaveChartImageToFileExtended
View Count: 966
[2020-02-03 02:51:16] |
User189399 - Posts: 43 |
I wrote a code to save the chartimage in case of some conditions were met and shown below. I found it can successfully save the image for the 1st time since the SC startup. After the 1st image saved, SC reported "Error creating chart image" for the further images. It can resume normal after restart SC. Pls help to fix this issue. sc.SaveChartImageToFileExtended( sc.ChartNumber, ImageFile, 0, 0, 0); |
[2020-02-06 01:08:44] |
User189399 - Posts: 43 |
Any update?
|
[2020-02-06 08:32:22] |
User907968 - Posts: 826 |
Assuming that you increment (or otherwise update) the variable 'ImageFile' between each call to the 'sc.SaveChartImageToFileExtended' function, maybe examine your code to check that the path/file you are trying to write to is still a valid path.
|
[2020-02-07 07:09:24] |
User189399 - Posts: 43 |
I checked with output of the ImageFile to the log and the path is valid. Sometimes "Error creating chart image file" happen but sometimes ok
|
[2020-02-08 04:37:13] |
Sierra_Chart Engineering - Posts: 18338 |
Are you using the OpenGL option? The problem may be related to that.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2020-02-08 04:37:28
|
[2020-02-08 13:25:39] |
User189399 - Posts: 43 |
No, I don't enable OpenGL
|
[2020-03-25 02:00:11] |
User189399 - Posts: 43 |
Any update on this issue. I still suffer from the occasionally save image error. I copied the codes below for your refer. F1.Format(sc.DataFilesFolder); ImageFile=F1.Left(-5); ImageFile.AppendFormat("images\\"); ImageFile.AppendFormat(sc.Symbol); ImageFile.AppendFormat("TelImage.png"); sc.SaveChartImageToFileExtended( sc.ChartNumber, ImageFile, 0, 0, 0); Below is the error messages reported by SC Chart: HSH20 [C][M] Flex Renko 60-30-0 #2 | Study: HSI Super Trend Signal Sys V1 0207 11:37 | ImageFile name is C:\DTC_SC\images\HSH20TelImage.png | 2020-03-25 09:55:49.226 Error creating chart image. | 2020-03-25 09:55:51.702 |
[2020-03-25 06:18:52] |
User189399 - Posts: 43 |
By trial and error, I found a hint that this problem does not happen when it write to a empty folder. I mean the folder is completely nothing. When the folder contain another files, this problem can also occasionally happen. Hope this can help you.
|
[2020-03-26 06:22:15] |
User189399 - Posts: 43 |
Sorry, pls forget the above statement. I found this problem still occasionally happen for writing to empty folder.
|
[2020-04-29 08:46:45] |
User189399 - Posts: 43 |
No reply or pending for the solution? Pls update
|
[2020-04-30 18:25:15] |
|
We are going to be working on adding more detailed logging to determine the reason for the problem. It is not related to the folder in any way at the point the error is occurring.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2020-04-30 18:29:52
|
[2020-06-01 07:17:37] |
User189399 - Posts: 43 |
Any updates? I still waiting your solution.
|
[2020-07-01 00:25:43] |
User189399 - Posts: 43 |
Any updates? Quite disappointed no answer so far
|
[2020-07-02 08:12:03] |
|
We have added additional logging some time ago. So make sure you are running the current version for more details in the Message Log.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2020-07-02 08:12:17
|
To post a message in this thread, you need to log in with your Sierra Chart account: