ERROR : terminate called after throwing an instance of 'cppException*'
-
Hi
So some code throws an exception.
You have to dig into the code and see if you can find out why.
Could be something missing it had in main project or the order of initialization. -
Hi
But if exact same code worked before, the API must be missing some setup or similar
as else it should work as it used to.
Before when worked in main app.
Did you have the code in main.cpp ?
It could be when converting to a sub project so of the life scopes of any objects in volved was changed.
Like when you take code from main.cpp and
put in a function. -
@Shruthi
Well it should not as normally its the other way around. moving code from main.cpp to
a function might change how it works.
But is that the only change ?
Move some code from a cpp file to main.cpp ?Normally an API dont care if called from main or some other place.
When you say subproject, do you mean it produces its own exe and the main project also now produce
an exe and before there was only one exe or anything like that ? -
In the main project I am using API and in subproject I am using terminal to print the result. In the subproject I removed all the GUI related files. And running through terminal It says this error.
And for the main project I have used the 3rd party dynamically linked .so files.
I have just copied the main.pro file to the subproject.pro. But still it's not running.
Do I want to link this in the pro file.
If so, please let me know.
Thanks in advance.I think it's simple. But I am not able to figure it out.
@mrjj