QNX IDE crash..


Having a major problem with the QNX IDE. I have a file called ariaUtil.h which contains maths utilities for robotics. When the file contains only this:

#ifndef ARIAUTIL_H
#define ARIAUTIL_H

#include <math.h>
#ifdef WIN32
#include <sys/timeb.h>
#ifdef linux
#include <sys/time.h>
#include <unistd.h>

//QNX Macros
#ifdef qnx
#include <sys/time.h>
#include <unistd.h>
#ifdef QNX
#include <sys/time.h>
#include <unistd.h>
//end QNX macros

#include “ariaTypedefs.h”
#include “ArLog.h”
#include “ariaInternal.h”

#ifndef M_PI
#define M_PI 3.1415927
#endif // of M_PI, windows has a function call instead of a define

/// This class has utility functions
class ArUtil
/// Values for the bits from 0 to 16
enum BITS {
BIT0 = 0x1, ///< value of BIT0
BIT1 = 0x2, ///< value of BIT1
BIT2 = 0x4, ///< value of BIT2
BIT3 = 0x8, ///< value of BIT3
BIT4 = 0x10, ///< value of BIT4
BIT5 = 0x20, ///< value of BIT5
BIT6 = 0x40, ///< value of BIT6
BIT7 = 0x80, ///< value of BIT7
BIT8 = 0x100, ///< value of BIT8
BIT9 = 0x200, ///< value of BIT9
BIT10 = 0x400, ///< value of BIT10
BIT11 = 0x800, ///< value of BIT11
BIT12 = 0x1000, ///< value of BIT12
BIT13 = 0x2000, ///< value of BIT13
BIT14 = 0x4000, ///< value of BIT14
BIT15 = 0x8000, ///< value of BIT15

/// Sleep for the given number of milliseconds
AREXPORT static void sleep(unsigned int ms);

/// Get the time in milliseconds
AREXPORT static unsigned int getTime(void);
#endif // ARIAUTIL_H

The file opens without any problems in the IDE.
However if I add the function :

/// Delete all members of a set. Does NOT empty the set.
Assumes that T is an iterator that supports the operator**, operator!=
and operator++. The return is assumed to be a pair. The second value of
the pair is assumed to be a pointer to a class that needs to be deleted.
template static void deleteSetPairs(T begin, T end)
for (; begin != end; ++begin)
delete (*begin).second;

The whole IDE crashes!!

Can somebody please help??!

As usual, more info is probably required. What version of QNX? An answer like 6.2.1B PE would help. Also what crashes - does the IDE disappear, does j9 crash.

For that matter, are you on WIndows or self hosted on QNX?

Sorry, I meant to include that at the end of the message. The IDE is Momentics V 2.0.0 and it is Windows hosted. The IDE freezes and eventually the “program not-responding” Windows message appears. The project compiles no prob on MSVS 6.0 and on Red Hat V7

Hmm… I am probably the last guy to help, since I don’t use the IDE nor Windows for developing in QNX. :slight_smile: However, the IDE is really a moving target and if the version you are using is not the latest (part of the 6.2.1B package), you will want to upgrade to that at least. Every release since it was released as shown substantial improvements in the IDE.

The only other thing I can suggest is a trial and error experiementing. Given the way an IDE works, a bug in the syntax coloring code could break the whole thing. Try turning off things like the (syntax coloring) and see if it helps…

Yup, that did the trick. Thanks.
When I open the file in text mode there’s no problem and it’s picking up my changes in the compilation…
Thanks again!

Turn off the indexer and disable the outline view. There are some known issues with the parsing code for indexing with CDT1.0 that have been fixed in CDT1.2, which will show up in the 6.3.0 rev of the IDE.