Error 304 Handler table size exeeded...

General discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
kollergmbh
Posts: 2
Joined: 22 May 2015 06:38

Error 304 Handler table size exeeded...

#1 Post by kollergmbh » 10 Apr 2016 18:43

HI,

I use "mikroPascal PRO für dsPic" Version 6.2.0.
The Processor is PIC24FJ256GB110. Heapsize = 11000
Used ROM=124507; Free ROM=50589

Now when i call a new Subroutine of the Main programm i get the Message
"304 Handler table size exeeded..."

What is wrong???

Below are some lines of the source-code:

If iGet_TempTouch is called then Error 304 is generated.
If iGet_TempTouch is not called then Linker is ok (Used ROM=124507; Free ROM=50589)


//--------------------------------------------------------------------------------
procedure iGet_TempTouch(xv,yv,xb,yb: integer; var touched: boolean);
var
Rc : byte;
iButton_x : word;
iButton_y : word;
begin
touched := false;

if TP_TFT_Press_Detect() <> 0
then begin
Rc := TP_TFT_Get_Coordinates(@iButton_x, @iButton_y);
end;

if Rc = 0
then begin
//----- search Button -----
if ((iButton_x >= xv) and
(iButton_x <= xb) and
(iButton_y >= yv) and
(iButton_y <= yb))
then begin
touched := true;
end;
end;
end;


//---------------------------------------
// Main Program
//.....
//.....
//.....

while Button_Nr = 0 do
begin
iGet_TempTouch(1,167,159,240,Touched);
if Touched then
Button_Nr := 1;

iGet_TempTouch(161,167,320,240,Touched);
if Touched then
Button_Nr := 2;
end;


Josef

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: Error 304 Handler table size exeeded...

#2 Post by uros.cvetinovic » 11 Apr 2016 09:09

Hi Josef,

Can you please zip and send your whole project that represents the issue?

Best regards,

Uros

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 General”