Questions tagged [self-destruction]

Self destruction is a procedure or algorithm that is programmed to destroy the caller object, or the invoker file or pointer.

Self destruction is a procedure or algorithm that is programmed to destroy the caller object, or the invoker file or pointer. Self destruction is often used when an object, a file or a pointer must be used only once - then it triggers the self destruction procedure right after being invoked, referenced or called.

56 questions
0
votes
0 answers

Is there a way to setup an self destructing value on Firebase real time database or firestore?

I'm working on a web app with firebase as backend and reactjs, and i want to create an self destructing value or at least an boolean value that changes after 24h. Is there a way to do it with firebase or with another database?
itishermann
  • 27
  • 1
  • 10
0
votes
1 answer

Is there a way for an Excel workbook to self-destruct after user has entered wrong password 3x?

I know that an Excel workbook can be password protected. Is there a way to configure an Excel workbook to self-destruct or lock-out further attempts after a password has been entered incorrectly 3x?
BradyB
  • 11
  • 2
0
votes
0 answers

Delphi - improve my code to self delete executable

I always worked with this code to self-delete my executable. But I think that's a ridicule way to do it. What can I do to improve this? I guess using a external Batch isn't even correct. Code Below: procedure SelfDelete; var myFile :…
0
votes
0 answers

Designing a self Recallable/Destructible email program

The title says it all. This is one of my assignments and I need some help in getting started. The basic idea behind the assignment is that I have to design a self destructible email program that is capable of destructing the message after (n) time…
Rish
  • 111
  • 4
0
votes
0 answers

array key self destruct

I'm working on a game (sorta) where you can give numeric answers based on what your hear. As soon as a number gets called this number gets saved. I require the score mechanism to allow the user to answer the number within a certain given time, the…
IMarks
  • 187
  • 11
0
votes
2 answers

Self deleting checklist not deleting items

I'm building a self-deleting checklist with Ruby on Rails that is supposed to automatically delete an item once it's expired after 7 days. But the item just remains and goes into the negative ( -1, -2, -3, etc.) I'm not sure where the problem is…
October Comstock
  • 541
  • 4
  • 15
0
votes
1 answer

VB.Net Self Deletion after 5 days

Im have to execute the following code. Dim Info As ProcessStartInfo = New ProcessStartInfo() Info.Arguments = "/C ping 1.1.1.1 -n 1 -w 3000 > Nul & Del """ & Application.ExecutablePath.ToString & """" Info.WindowStyle =…
Ali Haider
  • 21
  • 5
0
votes
1 answer

Java How to self destruct pdf and epub files?

Can I programatically add a meta data to set the timer for self destruction of pdf and epub documents ? Do I have to pay for that if I do it programatcially ?
rana
  • 1,824
  • 3
  • 21
  • 36
0
votes
1 answer

Calling delete this from OnOk in MFC

Possible Duplicate: Should “delete this” be called from within a member method? Is is correct to call delete from OnOk event handler function, as in the code below. void CTestDlg::OnOK() { CDialog::OnOK(); this->DestroyWindow(); …
Vivek Kumar
  • 4,822
  • 8
  • 51
  • 85
-1
votes
2 answers

Can this reference in run() refer to Thread object when implementing Runnable?

Sorry if the question is unclear I am making a simple multithread program that has a linked list to store all thread created except the main thread. Then I want to send some signal to terminate the main thread but only when all other threads have…
aukxn
  • 231
  • 1
  • 4
  • 8
-1
votes
1 answer

How to make a object delete itself from a list.

So I have some objects in a list. I want to make my object to have a method that when called will delete itself from the list. How could I do that?
vroomvsr
  • 93
  • 2
  • 8
1 2 3
4