The document appears to be corrupted and cannot be loaded - aspose

this is my aspose version.
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>20.4</version>
</dependency>
not every document will appear this exception when i call
new Document("document file path");

Such exception occurs if the document is corrupted. You should report such problems in Aspose.Words forum and attach the problematic document there.

Related

"View Details " missing form Exception handler VS 2017

This could easily be the same as:
'View Details' missing from exception assistant
But I am seeing it in VS 2017. Flipping "Use Managed Compatibility Mode" doesn't seem to make a difference.
This is what the window looks like:
With "View Details" missing, copy details only gives me the top level exception too.
If I wrap the code in a "try", "catch" block and use the debugger/immediate window to expand the exception object I can see important details like "inner exception". So why is this information hidden from me in the handler?
Additional Details
I am working on a Xamarin project and this error was located in a property called from a .net core portable library, the error in this case, was to do with NLog (a third party nuget package) that was installed in both the library and the andorid project but was possibly failing due to bad config. The exception was raised when remote debugging on an Android device.
I have seen this issue with the exception handler in all exceptions I have had so far (3 / 4, its a new machine)
This was a bug and has been fixed

Use custom video effect in UWP

First of all - my native language is not eanglish, sorry for posssible mistakes.
I need to use my own video effect for MediaCapture, made this for WS 8.1 and WP 8.1, than I start porting it to Win 10 at this moment start problems. My Video effect made as runtime component(dll), in this module I've got ActivatableClass and it is working!For win 8.1 I modified the manifest and add reference for my component, AddEffectAsync method I used with this parameters
m_mediaCaptureMgr->AddEffectAsync(Windows::Media::Capture::MediaStreamType::VideoPreview,"OcvComponent.SmileDetector",nullptr)
In Win 10 I've got crash in similary code
_mediaCapture->AddVideoEffectAsync(ref new Effects::VideoEffectDefinition("OcvComponent.SmileDetector"), Capture::MediaStreamType::VideoPreview)
I am already try old, well work method like this, the result is also crash
_mediaCapture->AddEffectAsync(Capture::MediaStreamType::VideoPreview,"OcvComponent.SmileDetector", nullptr)
Manifest in both cases i modify with this
<Extensions>
<Extension Category="windows.activatableClass.inProcessServer">
<InProcessServer>
<Path>OcvComponent.dll</Path>
<ActivatableClass ActivatableClassId="OcvComponent.SmileDetector" ThreadingModel="both" />
</InProcessServer>
</Extension>
App crashed with this message
This crash appear befor ActivatableClass constructor used, so breakpoint don't help me.
Also I should tell that the app in wich I call videoeffect for sample taken from github.com/Microsoft/Windows-universal-samples/tree/master/Samples/CameraVideoStabilization/cpp (sorry for incorrect link, not enough reputation), and I don't understand why but I can not add reference for this project to my component normally i've got this, so I modify project file in text redactor with this
<ItemGroup>
<ProjectReference Include="..\OcvComponent\OcvComponent.vcxproj">
<Project>{E84D5530-529F-49B4-811C-3D7FE0902B7E}</Project>
</ProjectReference>
I think this things can be connected.
Please help me to solve this problem
use C++ language, Visual Studio 2015,Win 10
not sure if this is still interesting to you.. but maybe to somebody else.
Found this here:
https://english.r2d2rigo.es/2016/03/10/creating-custom-video-effects-in-uwp-apps/
TLDR:
use a runtime component library (not any other project type)
make your effect sealed
you don't need to change the manifest anymore
cheers,

C++ Builder XE7: Using TChart in packages

I am confronted with a weird situation and I couldn't find any informations about this yet.
I have postet this issue allready on the new Embarcadero community forum but I'm not very hopeful that I will get an answer there... So I decided to create a new account here.
http://community.embarcadero.com/index.php/forum/tools/336-c-builder-xe7-and-teechart-standard)
I use the TChart component which is shiped with the IDE of XE7 (like in older versions). When I
use it in a package (.dll or .bpl) I get an access violation when I dynamically load, unload, and reload (reloading is the problem) the package wich contains a form with a chart in it. I looked at the loaded packages with a process monitoring tool and everything seems to be allright. The Tee9210.bpl is loaded successfully. When compiling the projects with /XE6 this error doesn't occur.
I could reproduce this on a second environement so I don't think its an issue of my installation/pc.
Can anybody reproduce this? I could provide a test project if needed.
Thank you in advance.
Kerem
Edit:
Access Violation when loading the bpl the second time:
Exception class: $C0000005
Message: 'access violation at 0xeeffeeff: access of address 0xeeffeeff'
I noticed that when I try to load the bpl again after this message I get a different exception:
Exception class: $C0000005
Message: 'access violation at 0x503230cf: read of address 0x00000000'
Sorry for posting the same question on two pages, but I wasn't sure if the new embarcadero
forum is popular enough to expect an answer from there.
But fortunately Yeray from Steema is active there, too. And I hope the solution could be read on the following link soon.
http://community.embarcadero.com/index.php/forum/tools/336-c-builder-xe7-and-teechart-standard

Intraweb class not found at runtime

I've beenworking with the IntraWeb framework on Borland C++Builder. Sometimes it happens that an application crashes because of a strange uncaught exception:
An unhandled application error has occured within My IntraWeb Application.
...
Error message raised by the application: Class TIWTimer not found
This happens when a new session is started. For example, by entering the address in a browser.
Also, the message appears in the classic IntraWeb error web page
The class that cannot be found is either TIWTimer or TIWButton but I think this is irrelevant.
The problem seems to occur randomly and sometimes goes away with a rebuild, but other times it will go away by rewriting the code or starting from a new project.
So, the question is, how come the link error is not found at link-time?
Why does it occur at all, since those classes belong to the standard IW library?
Has anyone had the same issue?
How can it be solved?
Use Intraweb XII in C++Builder XE2, it has good improvement and bug fixes.
in this version you can assign urls to forms, for example:
myhost/login.htm or myhost/login.aspx
for more information see this

c++ Service is stopping with error "this application has requested the runtime to terminate it an unusual way"

I have a c++ NTservice which is being accessed by SAP modules through rfc calls. Now this service is getting stopped with a message that "this application has requested the runtime to terminate it an unusual way" and then showing some IE script error that points to url "res://C:\WINDOWS\System32\mmcndmgr.dll/views.htm" -- I am getting this error very rarely and unexpectedly.
I have no clue why this error is coming, please anyone can guide me about the details and how to correct it if possible
(Windows xp, service is created in MSVC 2005)
Thanks,
Anil
That error message (at least usually) means you had an uncaught exception. You could start by adding a try/catch(std::exception const &e)/catch(...) to your ServiceMain, in an attempt at catching the exception and if it is a derivative of std::exception, printing out its what() to see what it has to say for itself...
That's the very unhelpful message that displays when your executable has crashed. Almost anything could be wrong.
Run your executable through a debugger and wait for the problem to occur. You can then try to find out more information about it.
In particular I'd check the service's documentation and make sure that your SAP modules are using the RFC calls correctly.