n00b can't get hello world example working

94 views
Skip to first unread message

the punisher

unread,
Oct 30, 2014, 11:27:30 AM10/30/14
to spar...@googlegroups.com
Hello,

I'm evaluating Sparksee with a development license, but I can't even get the most basic hello world example to run. 

I'm using VS2013 Update 3, 64-bit, C++, on Windows 8.1.

The problem happens right away on this statement:

Database *db = sparksee->Create(L"HelloSparksee.gdb", L"HelloSparksee");

When the statement executes, I get an Abort/Retry dialog that says "R610 abort() has been called". The the database file name has non-English characters. Looks like possibly Chinese characters. The same is true for the database log file name. Neither file has any recognizable part of "HelloSparksee.gdb" in it. 

The log file itself looks like a binary file; I can open it in a text editor, but there are no English statements in it. 

I have checked and triple checked that:
  • The project settings are using the Unicode character set (I have tried the Multibyte character set too, same results) 
  • I am linking with and running with the VS2013 64-bit library and DLL.
  • The sparksee.cfg file containing my license key is present in the directory with the executable (I get the same results even when the .cfg file is not there).

This has to be something utterly stupid that i'm doing wrong. I am prepared to be embarrassed. 

Thanks for any help/insight,
John


the punisher

unread,
Oct 30, 2014, 10:21:59 PM10/30/14
to spar...@googlegroups.com
Just a bit more info on this problem.

The crash/abort actually happens on the line:

g->SetAttribute(mLostInTranslation, movieTitleType, value->SetString(L"Lost in Translation"));


I see somebody else has posted with this same problem, in VS2010. I'm using VS2013. 

Also, the problem with the database/log file names is still the same: garbage characters, not the file name passed into the Create() function.

-J

c3po.ac

unread,
Oct 31, 2014, 3:25:26 AM10/31/14
to spar...@googlegroups.com

HI,

Yes, the problem could be the same. Are you using the Debug configuration in your Visual Studio project?

Please, try it using a Release configuration and check all the steps for a C++ project from the Sparksee user manual, including the platform selected.

http://www.sparsity-technologies.com/UserManual/Installation.html#windows-users

Best regards.



El divendres 31 d’octubre de 2014 3:21:59 UTC+1, the punisher va escriure:

Robert Pappenhagen

unread,
Aug 27, 2015, 2:01:07 PM8/27/15
to Sparksee
It's an issue with the way release and debug code is optimized. Debug used narrow wchar_t and release uses wide wchar_t definitions so they are not compatible.

So to debug the sample change the runtime library for the debug session to use the non debug crt.

Properties->C/C++/Code Generation/ Runtime Library set to "Multi-threaded DLL (/MD)"
Reply all
Reply to author
Forward
0 new messages