Guest User

Untitled

a guest
Dec 23rd, 2023
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. src/Dbo/Gnucash.cpp:30 /home/serveradmin/LorimarkSolutions.gnucash
  2. src/Dbo/Gnucash.cpp:36 qof_session_begin
  3. src/Dbo/Gnucash.cpp:41 error: 0
  4. src/Dbo/Gnucash.cpp:43 qof_session_load
  5. * 08:14:35 ERROR <qof.engine> [qof_commit_edit()] unbalanced call - resetting (was -1)
  6. src/Dbo/Gnucash.cpp:49 qof_session_get_book
  7. src/Dbo/Gnucash.cpp:51 0x7f8d8c01e870
  8.  
  9.  
  10. 30 std::cout << __FILE__ << ":" << __LINE__ << " " << path() << std::endl;·
  11. 31 ·
  12. 33 gnc_engine_init( 0, nullptr );·
  13. 34 auto s = gnc_get_current_session(); // qof_session_new( qof_book_new() );·
  14. 35 ·
  15. 36 std::cout << __FILE__ << ":" << __LINE__ << " qof_session_begin" << std::endl;·
  16. 37 std::string url = "sqlite3://" + path();·
  17. 38 // qof_session_begin( s, url.c_str(), SESSION_NORMAL_OPEN );·
  18. 39 qof_session_begin( s, url.c_str(), SESSION_BREAK_LOCK );·
  19. 40 ·
  20. 41 std::cout << __FILE__ << ":" << __LINE__ << " error: " << qof_session_get_error( s ) << std::endl;·
  21. 42 ·
  22. 43 std::cout << __FILE__ << ":" << __LINE__ << " qof_session_load" << std::endl;·
  23. 44 qof_session_load( s, NULL );·
  24. 45 ·
  25. 49 std::cout << __FILE__ << ":" << __LINE__ << " qof_session_get_book" << std::endl;·
  26. 50 auto book = qof_session_get_book( s );·
  27. 51 std::cout << __FILE__ << ":" << __LINE__ << " " << book << std::endl;·
  28. 52 ·
  29.  
Advertisement
Add Comment
Please, Sign In to add comment