I have observed the issue shared by you and request you to please try using latest Aspose.Slides for .NET 20.5. In case there is still an issue then please share the source code and used sample file reproducing the issue.
Thank you for your response, yes, this error still happens with 20.5:
sample$ ./build_sample.sh
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tnhuynh/Downloads/aspose-slides-cpp-linux-20.5/sample/build
Scanning dependencies of target Aspose.Slides.Cpp.Examples
[ 14%] Building CXX object CMakeFiles/Aspose.Slides.Cpp.Examples.dir/sources/chart.cpp.o
[ 28%] Building CXX object CMakeFiles/Aspose.Slides.Cpp.Examples.dir/sources/main.cpp.o
[ 42%] Building CXX object CMakeFiles/Aspose.Slides.Cpp.Examples.dir/sources/smart_art.cpp.o
[ 57%] Building CXX object CMakeFiles/Aspose.Slides.Cpp.Examples.dir/sources/presentation_export.cpp.o
[ 71%] Building CXX object CMakeFiles/Aspose.Slides.Cpp.Examples.dir/sources/text.cpp.o
[ 85%] Building CXX object CMakeFiles/Aspose.Slides.Cpp.Examples.dir/sources/thumbnail.cpp.o
[100%] Linking CXX executable Aspose.Slides.Cpp.Examples
[100%] Built target Aspose.Slides.Cpp.Examples
\nRunning examples...\n
terminate called after throwing an instance of 'System::ExceptionWrapper<System::Details_NullReferenceException>'
what(): System::NullReferenceException
./build_sample.sh: line 13: 14562 Aborted (core dumped) ./build/Aspose.Slides.Cpp.Examples
The only thing I change in the sample code is the file name param for PresentationExport::Export(). I’ve sent you the pptx file in the message as you have observed.
I’ve attached the main.cpp in this post. That’s the only change from the sample code for Aspose Slides C++ Linux v20.5. Please see the pptx file in the message I sent you separately
The sample code attach should compile and produce the error when run. Most of the code is commented out to isolate the problem. The issue occurs in the uncommented part on line 19:
I have observed your comments and like to share that following line of code is neither Aspose.Slides for C++ method nor its definition is given by you. I need Aspose.Slides API code that you have tested on your end and which is failing. Moreover, without source presentation that is crashing on your end, I may not be able to help you further.
We really wish to help you out but without provision of requested information, I may not proceed with my investigation.
Thank you for sharing the information. A ticket with ID SLIDESCPP-2432 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.
We have investigated the issue further in our end and are unable to reproduce the issue in our environment. Can you please share the environment details on your end including complete OS name (with version) name, the compiler and libstdc++ versions. If you he used Docker or other virtualization service is the required information about the environment.