We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

打开ppt文件阻塞,接口不返回

ppt资源:https://github.com/357809764/resource/blob/1dc2fe83297721f5c8a9dcb268c7b57697c01159/picture-error.zip
操作系统:windows 10
使用版本:aspose-slides-cpp-windows-22.8
示例代码:

auto pptFileStream = System::MakeObject<System::IO::FileStream>(filePath, System::IO::FileMode::Open, System::IO::FileAccess::Read, System::IO::FileShare::ReadWrite);
System::SharedPtr<Aspose::Slides::LoadOptions> loadOptions = System::MakeObject<Aspose::Slides::LoadOptions>();		
loadOptions->set_OnlyLoadDocumentProperties(true);
System::SharedPtr<IBlobManagementOptions> blobManagementOptions = loadOptions->get_BlobManagementOptions();
blobManagementOptions->set_TempFilesRootPath(resourceManager.GetCacheDir());
blobManagementOptions->set_IsTemporaryFilesAllowed(true);
blobManagementOptions->set_MaxBlobsBytesInMemory(300 * 1024 * 1024);
blobManagementOptions->set_PresentationLockingBehavior(PresentationLockingBehavior::KeepLocked);
auto presentation = System::MakeObject<Aspose::Slides::Presentation>(pptFileStream, loadOptions);

调用最后一行时接口无返回

@101ppt,
不幸的是,我无法重现上述示例代码和演示文件的任何问题。演示文稿已成功实例化。 我已将以下代码行添加到您的代码中:

std::wcout << presentation->get_Slides()->get_Count();

并看到演示文稿幻灯片计数等于 1。
我们需要更多关于如何重现问题的信息。

使用这个pptx文件:“https://github.com/357809764/resource/blob/0fcf5be13dff3749f682f52789f50dce8e0dc7ed/open%20time%20out.pptx

@101ppt,
感谢您提供演示文稿文件。 加载此演示文稿会导致应用程序在我这边冻结。我已将 ID 为 SLIDESCPP-3548 的工单添加到我们的问题跟踪系统。 很抱歉给您带来不便。 我们的开发团队将调查此案。 问题解决后会通知您。

The issues you have found earlier (filed as SLIDESCPP-3548) have been fixed in Aspose.Slides for C++ 22.10 (Windows, Linux, macOS).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.

@101ppt,
最初,由于 10000 个幻灯片布局、1000 个幻灯片母版、7000 个标签和 1000 个主题,您的应用程序加载演示文稿很长时间。 在 Aspose.Slides 22.10 中,许多元素的加载速度加快了,现在演示文稿的加载速度提高了 15 倍。