Strage memory error :S

Springare

13-01-2008 22:40:39

I get some strage error whit the grass fuction in PG

error:

(if the img is not visible Pic URL)

output:
First-chance exception at 0x7c812a5b in Tank'a'Deta.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0013f398..
Unhandled exception at 0x7c812a5b in Tank'a'Deta.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0013f398..




I do have some kind of warnings when I build the application:

Generating Code...
Compiling resources...
Compiling manifest to resources...
Linking...
PagedGeometry.lib(GrassLoader.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
Generating code
Finished generating code
Embedding manifest...
PagedGeometry.lib(GrassLoader.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
Generating code
Finished generating code



Anyone knows what the problem could be?

JohnJ

14-01-2008 15:48:08

It looks like noFreak had an almost identical problem in this thread:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5780

According to him, I think the problem was due to the incorrect .lib file being used (debug vs. release) for each build configuration.