Datagram memory issue

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Ultravibeman
Posts: 5
Joined: Tue Nov 13, 2018 4:57 pm

Datagram memory issue

Post by Ultravibeman »

Hello everyone!
I have a trouble with memory consumption. My app is using UDP:
"accept datagram connections on port 6250 with message "gotData"
Other app sends me UDP-datagrams about 20-30 times a second. it is OSC-messages. I receive them, parse and perform some actions depending of what was inside. But memory amount using by app is increasing as fast as many packets was received. It seems like all these messages are stored somewhere. But i don't need it - it can be erased or cleared right after parsing. How it can be done?
P.S. In C++ when opening UDP socket there is a flag - when it 0 (zero) - messages after receiving will be deleted from queue. May be there is the same thing in LiveCode?
Help me please!
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Datagram memory issue

Post by Klaus »

Hi Ultravibeman,

welcome to the forum!

I just deleted you double posting, please only one thread per problem.
Hijacking another thread is no good style!


Best

Klais
UltraLive
Posts: 1
Joined: Fri Oct 04, 2019 5:37 pm

Re: Datagram memory issue

Post by UltraLive »

Hello once again. My problem is still unsolved. Can anybody tell me how to manage udp datagrams? I don’t need them right after parsing - how can I clean up incoming bufer?
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Datagram memory issue

Post by Klaus »

Ultravibeman <> UltraLive, but both with just ONE posting so far?
Come on! 8)
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Datagram memory issue

Post by bogs »

That is ok, I'm not sure your the real Klaus!

We all know how easy it would be to copy your name (if you were the real Klaus!!), and yet, you yourself misspelled it :shock:
The name is &quot;KLAUS&quot;, if you can't spell it, COPY it!
The name is "KLAUS", if you can't spell it, COPY it!
I wonder if you need to go back to all the threads your name got misspelled in and apologize! :P
Image
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Datagram memory issue

Post by Klaus »

Hey, what EYE do with M-EYE name, is M-EYE business, BUDDY! :D
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Datagram memory issue

Post by bogs »

:mrgreen: :mrgreen: :mrgreen:
Image
Ultravibeman
Posts: 5
Joined: Tue Nov 13, 2018 4:57 pm

Re: Datagram memory issue

Post by Ultravibeman »

Guys, i'm really need to solve this issue... Why the memory consumption is growing up?

Code: Select all

global cedrPort
global lastPacket
on Listen
   put "59876" into cedrPort
   accept datagram connections on port cedrPort with message gotData
end Listen
on gotData tIP,nowData
  
  ...
  ...
  do some things with nowData
  ...
  ...
   delete variable nowData // This is my experiments)))))
   close socket tIP // This is also i'm trying to find the way out
   pass gotData // And this too
end gotData
How to flush incoming buffer or simillar action?
cpuandnet
Posts: 32
Joined: Thu Jan 17, 2019 6:43 am

Re: Datagram memory issue

Post by cpuandnet »

Have you tried debug breakpoints and/or putting messages to the message box window to get a little more clarification on what is happening and when?
Post Reply