14. October 2011

_ITERATOR_DEBUG_LEVEL’: value ’0′ doesn’t match value ’2′

Update 16.10. 2011: new information added to article.

I was trying to compile an application with Visual Studio 2010 which has some dependency on GDAL open source library.

Everything went ok. GDAL compiled without problem from VS and also from command line:

nmake -f makefile.vc MSVC_VER=1600 DEBUG=1

Compilation of application based on GDAL was also ok. The only problem was when I switched project from Release mode to Debug mode. Linker was throwing a lot of messages like this:

'error LNK2038: mismatch detected for _ITERATOR_DEBUG_LEVEL':
value '0' doesn't match value '2' in vrtizer.obj

I found some explanation that new version of VS has _ITERATOR_DEBUG_LEVEL set to 2 in Debug mode. It means that there are some extra security controls over iterators to detect memory leaks and other problematic stuff with iterators.

After longer research I came to realization that GDAL is compiled with /MD switch and my application wasn’t. The solution was easy. I just added /MD and Debug mode of app start working like a charm.

Quote from MSDN about /MD compiler switch:

Defines _MT and _DLL so that both multithread- and DLL-specific versions of the run-time routines are selected from the standard .h files. This option also causes the compiler to place the library name MSVCRT.lib into the .obj file.
Applications compiled with this option are statically linked to MSVCRT.lib. This library provides a layer of code that allows the linker to resolve external references. The actual working code is contained in MSVCR71.DLL, which must be available at run time to applications linked with MSVCRT.lib.

Update 16.10. 2011

/MD solved problem, but there was another warning: Command line warning D9025: overriding ‘/MDd’ with ‘/MD’.

To solve Iterator issue for GDAL you need to compile DEBUG version of gdal.lib with switch /MDd instead of default /MD.

Just open nmake.opt file and replace /MD in lines with DEBUG definition by /MDd.

There are two lines with MD:

OPTFLAGS= $(CXX_ANALYZE_FLAGS) /nologo /MDd /EHsc /Zi /W4 /D_CRT_SECURE_NO_DEPRECATE
/D_CRT_NONSTDC_NO_DEPRECATE /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb /DDEBUG
OPTFLAGS=   /nologo /MDd /EHsc /GR /Zi /W4 /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb  /DDEBUG

Then rebuild GDAL:

nmake -f makefile.vc clean
nmake -f makefile.vc MSVC_VER=1600 DEBUG=1

5. June 2011

Collajader 0.5 – some improvements

Collajader 0.5 is available.

Improvements:

  • added rendering monitor
  • load 3DS files from URL
  • material properties are loaded from file

Note: UI is still not very friendly. Primary purpose of this application is feature test of Alternativa 3D.

You can test demo at project page.

 

27. May 2011

WebCam Toolbox 0.1 is now open source

WebCam Toolbox is useful for speakers. This tool allows to display view from web camera during presentation.

Just start application and select web camera source.

Install WebCamp Toolbox just by click:

Some links:

Note: Adobe AIR is required in order to install this application. You can download it from http://get.adobe.com.air.

Further information about project is at WebCam Toolbox project page.

19. May 2011

Žilina – Conference – Open source in research and IT solutions

OSSConf 2011

You can find more details at OSSConf 2011 web page.

11. April 2011

OpenBSD song: The Answer

Play: OpenBSD 4.9 - The Answer

You can find out more about this song at OpenBSD release song page.

20. March 2011

Free RIA tools

Adobe launched simple web site with list of RIA tools available for free.

You can find there more information about free version of Flash Builder.

List is quite small, but do not forget that there are many other useful resources available for free: opensource.adobe.com, riaforge.org, wonderfl.net.

9. March 2011

Riaforge.org – Open Source projects

Riaforge.org is site where you can find a lot of open source projects built on Adobe technology.

You can find there extensions for Photoshop, Flex libraries or even LiveCycle extensions.

Thanks to Kai Koenig for this link.

BTW: Further open source projects supported by Adobe are located at opensource.adobe.com.

4. January 2011

Open source FlashPreloadProfiler

Jean-Philippe Auclair published open source FlashPreloadProfiler.

More information at http://jpauclair.net

9. October 2010

Open Source – Microsoft

Pokiaľ ste to ešte stále nepostrehli, doba sa nám mení.

www.microsoft.com/opensource

K tomuto sa viaže aj projekt CodePlex.com, čo je vlastne taký code.google.com a sf.net v podaní Microsoftu.

Medzi zaujímavými projektami je tu možné nájsť napríklad Ajax Control Toolkit.

Zaujímavé video na tému open source a Microsoft:

8. August 2010

Technológia Google Wave bola otvorená ako open source

4.8. 2010 Google ohlásil zastavenie pôvodného projektu Google Wave. Uvedenie Google Wave bolo ohlásené minulý rok na konferencii Google I/O. Prezentácia sa vtedy niesla v duchu – e-mail je vec minulosti, Google Wave je správna vstupenka do budúcnosti. Perfektne zvládnutý marketing pritiahol veľké množstvo ľudí. Bohužiaľ čoskoro zistili, že vlastne nevedia, ako majú Wave používať.

Postupne však ľudia začali prichádzať s novými scenármi používania Wave a základňa používateľov sa rozrástla. Google Wave začal byť používaný na koordináciu projektov a diskusie medzi väčším množstvom ľudí na projektoch.

Z technologického hľadiska však zostal Wave zatvorený projekt. Google vydal FedOne server. Tento mal slúžiť potencionálnym vývojárom ako miesto pre integráciu s inými aplikáciami. Práca s FedOne 0.2 vonkoncom nebola jednoduchá. Štruktúra serveru bola pomerne zložitá a umožňovala len čiastočnú funkcionalitu. Google skoro rok nepublikoval žiadnu aktualizáciu. To bol indikátor, že dochádza k nejakej zmene.

Podstatná zmena v Google Wave projekte je, že prešiel pod Apache licenciu a kódy pre Wave protokol sú k dispozícii. Štafetu po Google prebral Novell, ktorý vyvíja technológiu Novell Pulse. Prechod pod Apache licenckiu im rozhodne zjednoduší licencovanie produktu.

Wave určite priniesol nové koncepty, ktoré posunuli internet a web o kus ďalej. Myslím, že sa môžeme tešiť na nové projekty, ktoré rozšíria pôvodné hranice možností Google Wave.

  • Babel fish

      Translate from:

      Translate to:

  • Where’s the fish?

  • Starfish

  • Fish for you

  • Further info

  • Badges

  • Video channel

  • Learning

    Grow your brain.
  • Tags

  • Topics

  •  

    February 2012
    M T W T F S S
    « Jan    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  
  • Comments