Datagram memory issue

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

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

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

Datagram memory issue

Post by Ultravibeman » Tue Nov 13, 2018 5:10 pm

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: 11197
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Datagram memory issue

Post by Klaus » Tue Nov 13, 2018 7:09 pm

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 » Fri Oct 04, 2019 6:50 pm

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: 11197
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Datagram memory issue

Post by Klaus » Fri Oct 04, 2019 7:05 pm

Ultravibeman <> UltraLive, but both with just ONE posting so far?
Come on! 8)

bogs
Posts: 3786
Joined: Sat Feb 25, 2017 10:45 pm

Re: Datagram memory issue

Post by bogs » Fri Oct 04, 2019 9:50 pm

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:
ItIsKlausDangit.png
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: 11197
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Datagram memory issue

Post by Klaus » Sat Oct 05, 2019 10:19 am

Hey, what EYE do with M-EYE name, is M-EYE business, BUDDY! :D

bogs
Posts: 3786
Joined: Sat Feb 25, 2017 10:45 pm

Re: Datagram memory issue

Post by bogs » Sat Oct 05, 2019 11:11 am

:mrgreen: :mrgreen: :mrgreen:
Image

Ultravibeman
Posts: 2
Joined: Tue Nov 13, 2018 4:57 pm

Re: Datagram memory issue

Post by Ultravibeman » Tue Oct 08, 2019 6:55 pm

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: 6
Joined: Thu Jan 17, 2019 6:43 am

Re: Datagram memory issue

Post by cpuandnet » Tue Oct 08, 2019 11:54 pm

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

Return to “Windows”