Hi,

I'm sorry for delayed reply.

Here is the thing.
I forgot to mention that I'm using x64 build of Wt with VS2008. After update 
on higher version than 3.2.0, I started to get an exception on simple query 
with strange message '2'.

After struggling whole day, and tried almost everything, I built x32 version 
of application.
Exception occured again, but this time I've got meaningful message through 
the exception object. Something like ' Table ConfigurationFiles is missing a 
natural id defined with Wt::Dbo::id()'. So, I added definition of id field 
in that ORM class, and now everything works ok like before. It seems that 
version 3.2.0. was less restrictive on mapping class than later versions.

After I saw this correct error message, problem was solved in a second, but 
meaningless message in exception object on x64 build, gave me real headache.

Thank you for replies,
Regards,
marin


"Wim Dumon" <w...@emweb.be> je napisao u poruci 
interesnoj 
grupi:CAJ2=PVSRX+391dT8io2am-_6Nr_GXHj2VTXr=drrxm7mjwt...@mail.gmail.com...
Hello Marin,

Can you make your debugger break when exceptions are thrown, to see where it 
comes from? In gdb, that's with catch throw, MSVS also allows this.


BR,
Wim.




2013/8/28 Marin Lukovic 
<marin.luko...@gmail.com>
Hi,

Some time ago, I wrote little app using Wt version 3.2.0. Also, for data
access I used ORM technlogy and Wt::Dbo, Wt::Dbo::backend::Sqlite3.
Anyhow, now I wanted to upgrade on new Wt version, and found that simple
query (i.e. find<CEntityProperty>()) is throwing an exception. Only info
that I could read from exception variable is from what() function, and it
returns number '2'. Does anybody know what it meens?

I have done little research and it seems that this behavior starts with next
version 3.2.1.

Maybe is important to mention that I'm handling database through the class
which inherits Wt::Dbo::Session

Any help would be much appreciated.
Thank you,
Regards,
marin



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
mailto:witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk

_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest 



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to