Ariana
Ok but dynamic arrays
Ariana
Ok but dynamic arrays
you call that complex?
Talula
Ok but dynamic arrays
That's what I said... using memory allocation needs freeing...
Mihail
Exactly...
Not exactly
Avezy
Or like anything that requires over 4MB of memory
ulimit -s Well you can kinda cheat 🤓 But thats dumb
Ariana
That's what I said... using memory allocation needs freeing...
Why not dont use objects in c++ then you dont need to free
Talula
Not exactly
Yes Exactly.
Mihail
And it's the same across C and C++
Talula
And it's the same across C and C++
Have you tried Windows programming in OWL or MFC?
Talula
Do it and you'll know the meaning of leak...
Ariana
do you know when you need to free even
Mihail
You don't seem to
Talula
Do the programming in C and you'll not have leaks because you do not create objects, every object is just a handle.
cjen
So she leaves memory leaks or never makes a program that uses over 4MB of memory?
In fact, she using opencv to process video frames. And found her program crashed every five seconds since start. She let me to find the 'bug' for her well compiled code.
Avezy
When the lifetime of your object ends you usually free or in case you do pool allocation you reset it
Ariana
Try making a linked list
Ariana
Or dynamic arrays
Ariana
Such simple things
Ariana
Requires mallocing
Talula
I program in c like 99% of the time and still get leaks
I'm feel for you... but I do not.
Ariana
Worse are like trees and graphs
Ariana
Explain how those dont just take up memory if you dont free them
Talula
Worse are like trees and graphs
That is what I said... dynamic memory allocation needs freeing... but in C++ you have to do it even if you don't want it.
Anonymous
Hello Any one Can help me.....???? ¿
Mihail
No need to ask if you can ask
Talula
in c++ you arent force to do dynamic mem...
Even if you create instance of the object it has to be freed... if you do not the memory is allocated and never freed even if the pointer to the object is lost.
Talula
Unless it's on the stack
If you have anything on stack it's memory allocation...
Anonymous
No need to ask if you can ask
How i can run cpp program in background like any virus
Ariana
Yes
ok but you dont need to free or anyting
Mihail
But not trough malloc
Ariana
You realize void main(){ int i; char j;// these are on the stack return 0; }
Anonymous
Windows 10
Anonymous
And mac
Talula
In Mac open terminal type the name of the program and end it with &
BinaryByter
Talula
It'll run in the background.
BinaryByter
In Mac open terminal type the name of the program and end it with &
do that a thousand times - preferably with a heavy program
cjen
It is not very background
Avezy
CTRL
Avezy
+ D
cjen
The process will answer sighup
Talula
It is not very background
I know... he wants to run the program in the background not make a virus.
Talula
If you want to make a virus, I can tell you how to do it in DOS.
Talula
Beyond that I have not tried it.
BinaryByter
tbh you don't even have to be very ellaborate
BinaryByter
just ask for permissions to destroy the disk
BinaryByter
you will get it in 6/10 cases
Talula
dos is trash anywyas
Well that is what I learned in college.
Talula
I mean we had Windows 98 then but we had a class called "make a virus in DOS".
Ariana
windows is also trash
Ariana
But easy to make malware cant complain
Talula
windows is also trash
Be respectable to trash please...
Avezy
Do you want to run your own program in the background on windows 10 or any program?
Talula
Windows is Garbage..
cjen
OMG
cjen
My pc is crashed right now after update reboot