Go Down

Topic: malloc issue (Read 143 times) previous topic - next topic

ArthurD

like me for English :D

but it's just about the malloc and the memcpy thing, and that's just C.

AWOL

So, when you post a single sketch (here, obviously) that demonstrates the problem, I'll comment.

Who knows, in working through your problem, you may find the answer.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ArthurD

#17
Jun 27, 2016, 09:35 pm Last Edit: Jun 27, 2016, 09:36 pm by ArthurD
what?

I linked to all the code. If you can't help or if you're too lazy to start thinking about it, just let it be - maybe someone else finds the mistake.

The forum editor stupidly does not allow to post it here in a code box.

I meanwhile assume that it's a native Arduino compile error, it seems on the Pi I don't get that error.
(I use IDE 1.6.5)

AWOL

If you can't be bothered to help others to help you, or you're too lazy to try, please stay over at the toy forum.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ArthurD

#19
Jun 27, 2016, 09:39 pm Last Edit: Jun 27, 2016, 09:40 pm by ArthurD
what?
that sounds like rubbish - what do you want to communicate?

If you do not want to help, please keep off of this topic.

AWOL

Quote
I meanwhile assume that it's a native Arduino compile error,
Google "Hanlon's Razor"
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ArthurD

why should I? I don't feel like discussion on your assulting and redicule level.
Help - or be quiet.

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ArthurD

yes, ridicule, sorry for my poor English.

But please, back to topic.
A moderator should know about that. (CMIIW).

AWOL

Yes, back to topic.

Now, where's the minimal sketch you wrote that demonstrates your problem?
(And if the answer is "it's on another forum or WasteBin, or a .doc, or I haven't written one", don't bother answering)
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ArthurD

#25
Jun 27, 2016, 09:58 pm Last Edit: Jun 27, 2016, 10:02 pm by ArthurD
there is no minimal sketch, because the sketch is long, and the question is just about a small problem which I already cited:

http://forum.arduino.cc/index.php?topic=409498.msg2817956#msg2817956

http://forum.arduino.cc/index.php?topic=409498.msg2817997#msg2817997

the code works fine with a global int16_t buf[256],
but does not work with a dynamic allocated  int16_t  buf[256]

the complete code is here:

http://www.mindstormsforum.de/viewtopic.php?f=78&t=8899&p=69470#p69470

KeithRB

#26
Jun 27, 2016, 10:56 pm Last Edit: Jun 27, 2016, 10:57 pm by KeithRB
Then make a minimal sketch! We all have lives, too. A minimal sketch might also show you where the problem lies. If you don't want our help, that's fine, you are free to stay here and talk to yourself.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy