Trying to run my first "external" CS project, I copied just
the Simple1 files to a new solution, making all the adjustments necessary to link to the correct prebuilt CS library, as detailed in the CS manual.
The result is a new Simple1 which runs perfectly correctly, in either Debug or Release.
However there is a problem when I run the Debug build with the "-help" option. The first few Help lines appear correctly on the console like this:
-[no]console Create a debug console (default = yes)
Options for Crystal Space 2D OpenGL graphics driver for Win32:
-depth=<val> Display depth (32)
-[no]fs Fullscreen if available (no)
-mode=<val> Window size or resolution (640x480)
Then I get a "Debug assertion failed" dialog with these details in it:Program: <path to my exe>
Looking into the call stack a little, this seems to be happening just prior to exiting
csCommandLineHelper::Help (iPluginConfig* config)
in file cmdhelp.cpp, having successfully printed three items, and while trying to destroy a csVariant object.
Have I missed some or other setting to enable correct function of memory management between my external project and the CS lib?
I am using:
MS Windows XP Pro 2002 SP2
MS Visual Studio.NET 2003 (aka "VC7")
CS Pseudo Stable Release (0.99 from 3 September 2005)