-
Notifications
You must be signed in to change notification settings - Fork 8
Troubleshooting
James Pan edited this page Jul 7, 2018
·
2 revisions
Possible cause: RSAlgorithm is initialized before Cargo is initialized. RSAlgorithm calls Cargo::db() in its constructor. If Cargo::db() returns an invalid pointer (because Cargo hasn't been initialized yet), then sqlite3 will report an "out of memory" error. The solution is to put RSAlgorithm after Cargo in your code.
Wrong:
...
RSAlgorithm myalg;
Cargo mycargo(options);
Right:
...
Cargo mycargo(options);
RSAlgorithm myalg;