News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

crash with circular includes

Started by MaurizioF, May 18, 2011, 12:19:28 PM

Previous topic - Next topic

MaurizioF

I'ts several months i regular use the Ide, but now I  experience frequently ide crashes.
I think it depends on circular includes.
I'm using version 6.50.4 rc3 on windows Xp.
The ide crashes every time i save one of the two modules involved.
Anyway the program is correctly compiled without errors.

every include is protected by its own #ifndef
e.g. :

---- module Objects.h ------
#ifndef __OBJECTS__
#define __OBJECTS__

#include <stdlib.h>
#include "error.h"
... some definition ...
#include "environ.h"        // here is a circular include
... other definitions ...

#endif

---- module environ.h -----

#ifndef __ENVIRON__
#define __ENVIRON__

#include "Hash.h"
... some definition ...   
#include "Objects.h"     // here is a circular include
... other definitions ...   

#endif

Any suggestion ?
Best regards
Maurizio



MichaelT

That is fixed in the latest rc4 release. You should update.