Hello Xavier!

> I'm sorry but I'm not an expert on Visual Studio hotfixes. I think
> the best way to receive support on this issue is to ask the question to the
> Visual Studio forums:
No worries. I just thought as you had a similar problem, you might have
known the exact issue and hotfix number. I might have possibly ruled out
one cause of error faster.

> Regarding the question about precompiled headers (PCH), there's not
> an option to disable all PCHs in CSnake. However, you can disable these
> independently for each component. 
I did disable everything for the plugins, but it did not help.

But:

The solution was much simpler. After following a discussion about
regarding 0xC0000417 ( invalid parameter to the c runtime) in a larger
open source project and their fixes for it(using char* pointers instead
of char[] arrays of defined length, circumventing the security checks
for bounded arrays), i slowly realized that my problem also could be
related to a string length issue. But not for the to-be-created program,
but for the Microsoft compiler itself.
And indeed, looking up the specs delivers a string limit of 8191
characters for the command line (Command prompt (Cmd. exe) command-line
string limitation <http://support.microsoft.com/kb/830473>). As CMake
sadly uses absolute paths in everything, this becomes an issue quickly.

So the simple answer to my utmost dull problem is: The command line for
the compiler was to long. I had my project in something like
d:/scratch/thomas/projects/current/gimias which caused apparently the
overflow for cl.exe at the stage of the precompiled headers target. One
can blame the guys in Redmond for just letting their compiler crash
instead of giving a precise error message in that case.

Good thing is, after 2 weeks of installing every hotfix possible my
Visual Studio is up to date :P

One thing i noted then, as i did a lot with MITK before, is that the
current makefiles of MITK check the build path length for that reason
and won`t generate the make files if too long. Maybe its worth looking
into it and integrate that function, it might safe other people some
trouble in the future.

Kind regards,
Thomas


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to