Summary:
I've noticed some issues with GapiDraw 3.6 and VS 2005. These are all blindingly obvious, so they should either be easy to repro or there is something really broken in my configuration.
(1)
Change: Desktop builds with VS 2005 need to define UNICODE/_UNICODE (Configuration Properties > C/C++ > General > Use UNICODE Response Files = Yes). If you don't you'll get linker errors. This is probably a good thing - unless you're targetting Win9x there's no reason not to compile for Unicode, but it was unexpected. Should be in big letters in the release notes.
(2)
Warnings compiling GapiApplication.cpp:
This isn't new, but it's annoying. Builds should compile cleanly on Warning Level 4 w/ no warnings. This can be fixed by removing parameter names from default implementations of virtual methods: dwKey, keylist, p, etc.
(3)
Warnings when linking, e.g. with a copy of Minimal:
The first three are related and can be addressed by changing project configurations. The last (actually a ton of errors - one for each .OBJ in the GapiDraw source) appears to be a change in how the debugging information is included in the DLL. Again, projects should always compile cleanly with no warnings.
(4)
If using DLL (e.g. change Linker > General > Additional Library Directories = ../../../../dll/vs2005-pc), the following runtime errors manifest:
I see this in my application when I call the delete operator on any GapiDraw object. In the Minimal sample, it appears to happen in the constructor. This appears to be heap corruption in the GapiDraw.DLL, but I haven't traced it through at the assembly level.
Desktop VS8 builds need to be UNICODE
Compiler warnings in GapiApplication.cpp
Linking warnings in all sample applications
Heap corruption in DLL
I've noticed some issues with GapiDraw 3.6 and VS 2005. These are all blindingly obvious, so they should either be easy to repro or there is something really broken in my configuration.
(1)
Change: Desktop builds with VS 2005 need to define UNICODE/_UNICODE (Configuration Properties > C/C++ > General > Use UNICODE Response Files = Yes). If you don't you'll get linker errors. This is probably a good thing - unless you're targetting Win9x there's no reason not to compile for Unicode, but it was unexpected. Should be in big letters in the release notes.
(2)
Warnings compiling GapiApplication.cpp:
- Code:
Warning 4100: unreferenced formal parameter
This isn't new, but it's annoying. Builds should compile cleanly on Warning Level 4 w/ no warnings. This can be fixed by removing parameter names from default implementations of virtual methods: dwKey, keylist, p, etc.
(3)
Warnings when linking, e.g. with a copy of Minimal:
- Code:
gapidraw.lib(GapiSurface.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
gapidraw.lib(*.obj) : warning LNK4204: 'c:\dev\GapiDraw\samples\win32\Copy of Minimal\vs2005-pc\Debug\vc80.pdb' is missing debugging information for referencing module; linking object as if no debug info
The first three are related and can be addressed by changing project configurations. The last (actually a ton of errors - one for each .OBJ in the GapiDraw source) appears to be a change in how the debugging information is included in the DLL. Again, projects should always compile cleanly with no warnings.
(4)
If using DLL (e.g. change Linker > General > Additional Library Directories = ../../../../dll/vs2005-pc), the following runtime errors manifest:
- Code:
Windows has triggered a breakpoint in Minimal.exe.
This may be due to a corruption of the heap, and indicates a bug in Minimal.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information
I see this in my application when I call the delete operator on any GapiDraw object. In the Minimal sample, it appears to happen in the constructor. This appears to be heap corruption in the GapiDraw.DLL, but I haven't traced it through at the assembly level.