Re: Bug or something else
It reminds me something, not sure what but, can you try to replace the square bracket with parenthesis within the SERIN2 lines?
something like
Code:
serin2 PC_RX,Baud_Rate,500,PC_Data,[.... apn_name(0),apn_name(1)......]
EDIT: For testing purpose I would get rid of the Timeout...
Damn I'm rusty
Re: Bug or something else
I did, no matter where I put Apn_name(0),same result...
I have defined some variables, only for testing, and everything is ok, but apn_name(0):mad:
EDIT:
I really have no idea what's going on ...
I tried this
Code:
serin2....[....i,apn_name(1)....]
apn_name(0)=i
And its working, but...
speechless:mad:
Re: Bug or something else
What's sending the data to your PIC? Can you sniff it with a Terminal software?
What if you define your array at the top, then add the remaining vars bellow?
Re: Bug or something else
VB6.
Of course, I first check whether VB6 send well.
I shorted pin's 2 and 3 on the serial port, and put a piece of code that displays data from Rx in textbox.
I have not changed anything in the vb6 code when I moved app_name[0].
I just changed the position of the serin2.
Now i will mowe to top of code...
Re: Bug or something else
It does not matter where is the definition of variable, it is always the same.
Now I changed the length of the array, and when I change the length of the array, the problem is moved from one array to another...
So, this to me looks much like a bug...
EDIT:
Now I see that I wrote that I use 18LF2550.
I wrote wrong, it's late so ...
I moved from PIC18LF13K50 to 18LF14K50.
18LF13K50 has 8K of memory, and that was a little to put an ftp and email client on it.
So I switched to PIC18LF14K50 with a 16K memory, and I just copied and compiled code for it...
Re: Bug or something else
Re: Bug or something else
It isn't...
If I put apn_name var byte[25], that problem moves to apn_user[0]....
Re: Bug or something else
I tried a few things ...
If I make array of variables with the name of AA, the problem is moved to it. And if I create a variable with a name such as VV, the problem remains the variable apn_name.
I suppose the bug somewhere in the allocation of address variables.
I notice that alphabetical order of names is important, when addresses are assigned to variables...