Jump to content
Reynard

Program Chash

Recommended Posts

#include <system.h>

typedef unsigned char uint8;

#define	PULSE_CHANNELS		4
//#define	CHANNEL_1			0

struct
{
	uint8				moneyChannel;
	uint8				mechPulseInput;
} mech;

void Function(void)
{
	uint8 channel;
	for (channel = CHANNEL_1; channel < PULSE_CHANNELS; ++channel)
	{
	} // end for.
}

Having some problems with compiler crashing with this simple code.

 

I am getting an internal error and a dialog box pops up with 2 buttons saying debug and close program.

Pressing close program doesn't close the program, the IDE just continues as normal.

 

The (psudo) crash occurs when the constant CHANNEL_1 is undefined.

 

 

Sourceboost C V7.30

Windows 10 64 bit.

PIC18F26K22

 

Cheers

 

Reynard

 

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×