Dear Sir or Madam,
Yesterday I sent an e-mail to info@steema.com to inquire the reason why I cannot use TeeChart in Visual Studio 2022 designer.
When I try to use it, I get "Object reference not set to an instance of an object.".
I confirmed 3 points I got in advance.
1) I have run the TeeChart installer on the machine I am using
2) I run VS "As Administrator"
3) that a license is installed
(However I don't have x86 OS architecture, so I ran it in x64 OS architecture)
Still Teechart sends me an error "Object reference not set to an instance of an object." and does not work properly.
I am using:
・Steema Teechart for .NET 2012
・TeeChart.dll(Version:4.1.2012.2283), TeeChart.OpenGL.dll(Version:4.1.2012.2283)
・OS : Windows 11 (x64)
・Language : C#
Could you please anyone confirm if Teechart works properly under the condition I tried?
Thank you very much.
msg
In VS2022 designer, I get "Object reference not set to an instance of an object."
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: In VS2022 designer, I get "Object reference not set to an instance of an object."
Hello,
apologies for the delay in our reply to you. Do you still have the Visual Studio project (*.csproj) you used to run your test with TeeChart? If so, could you please remove the binary files in the bin and obj directories, put it in a zip file, and post it here so I can test it here?
apologies for the delay in our reply to you. Do you still have the Visual Studio project (*.csproj) you used to run your test with TeeChart? If so, could you please remove the binary files in the bin and obj directories, put it in a zip file, and post it here so I can test it here?
Best Regards,
Christopher Ireland / 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: In VS2022 designer, I get "Object reference not set to an instance of an object."
Here is the project I ran before.
Thank you for your testing.
Best Regards,
msg
Thank you for your testing.
Best Regards,
msg
- Attachments
-
- WindowsFormsApp.zip
- (46.31 KiB) Downloaded 458 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: In VS2022 designer, I get "Object reference not set to an instance of an object."
Hello,
Thank you for your project. Just for your information, you can see in this image that your project works without a problem when deleting the references to TeeChart.dll and TeeChart.OpenGL.dll from your project and then adding in the latest NuGet package: However, I see that you have an instance of the class InnerChart on the design surface of the Form: Is this intentional? I ask because this class is essentially an internal class we use in the Tools namespace—the class which was designed to work on the design surface of a Windows Form is 'Steema.TeeChart.TChart'.
Thank you for your project. Just for your information, you can see in this image that your project works without a problem when deleting the references to TeeChart.dll and TeeChart.OpenGL.dll from your project and then adding in the latest NuGet package: However, I see that you have an instance of the class InnerChart on the design surface of the Form: Is this intentional? I ask because this class is essentially an internal class we use in the Tools namespace—the class which was designed to work on the design surface of a Windows Form is 'Steema.TeeChart.TChart'.
Best Regards,
Christopher Ireland / 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: In VS2022 designer, I get "Object reference not set to an instance of an object."
I apologize for delaying the delaying of my reply.
Size of the file I would like to send you is too large to attach on my reply in Steema Forum,
so I reply with an E-mail to info@steema.com and attached the file on it
Thank you for your confirming.
Size of the file I would like to send you is too large to attach on my reply in Steema Forum,
so I reply with an E-mail to info@steema.com and attached the file on it
Thank you for your confirming.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: In VS2022 designer, I get "Object reference not set to an instance of an object."
Hello,
yes, you're project works fine for me here: I think you should run TeeRegV2010 which will install a valid license for your v2012 version of TeeChart on your machine. You can download this executable file from the Client Access link, and then click on Resources: Download TeeRegV2010, and then run it and follow the instructions. If you log out of your Windows User account and then log back in again, this may resolve your problem for you.
yes, you're project works fine for me here: I think you should run TeeRegV2010 which will install a valid license for your v2012 version of TeeChart on your machine. You can download this executable file from the Client Access link, and then click on Resources: Download TeeRegV2010, and then run it and follow the instructions. If you log out of your Windows User account and then log back in again, this may resolve your problem for you.
Best Regards,
Christopher Ireland / 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: In VS2022 designer, I get "Object reference not set to an instance of an object."
I downloaded and ran TeeRegV2010.
After running it, I can use TeeChart in VS2022. I appreciate your support.
After running it, I can use TeeChart in VS2022. I appreciate your support.