How to create a RAM disk in Livecode

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

karmacomposer
Posts: 361
Joined: Wed Apr 27, 2011 2:12 pm

How to create a RAM disk in Livecode

Post by karmacomposer » Mon Apr 10, 2023 10:01 pm

I have the need to create a ram disk to do functions out of prying eyes. How would I programmatically create a ram disk in windows using Livecode?

Thank you.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: How to create a RAM disk in Livecode

Post by dunbarx » Mon Apr 10, 2023 10:08 pm

Hi.

Wouldn't it be easier to encrypt your standalone?

Craig

karmacomposer
Posts: 361
Joined: Wed Apr 27, 2011 2:12 pm

Re: How to create a RAM disk in Livecode

Post by karmacomposer » Mon Apr 10, 2023 10:15 pm

Funny enough, this is after decrypting a file and then wanting to display it (pdf) in a browser control but I do not want to save the file to a hard drive first. It works if I save it, but my desire is to open it in memory, display it and then close everything without ever writing an actual decrypted file to a hard drive

Mike

stam
Posts: 3060
Joined: Sun Jun 04, 2006 9:39 pm

Re: How to create a RAM disk in Livecode

Post by stam » Fri Apr 14, 2023 1:00 pm

karmacomposer wrote:
Mon Apr 10, 2023 10:15 pm
Funny enough, this is after decrypting a file and then wanting to display it (pdf) in a browser control but I do not want to save the file to a hard drive first. It works if I save it, but my desire is to open it in memory, display it and then close everything without ever writing an actual decrypted file to a hard drive

Mike
Would it be a problem if you saved to disk and then deleted it programmatically?
Typically specialFolderPath("temporary") would be used for something like that...

S.


FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to create a RAM disk in Livecode

Post by FourthWorld » Fri Apr 14, 2023 5:00 pm

I have a solution, Mike. But Klaus is a colleague I've known for more than two decades, and I can't in good conscience lend my expertise to a situation that is harmful to him.

Please resolve the matter with Klaus, and when both of you confirm a mutually-satisfying solution has been arrived at I'll be happy to help.

In the course of my career as a contract developer I've also been invited to act as a non-binding mediator on a few occasions, to help negotiate matters like this. I would volunteer to do so here via private email if that would help.

But by whatever means, this situation has continued for years now, and it needs to be resolved.

It needn't be resolved here. These are LiveCode support forums, and should remain so. Personal matters are best resolved through private channels.

You're both earnest professionals and I'm confident a solution can be arrived at. Please contact Klaus and make arrangements. Thank you.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

karmacomposer
Posts: 361
Joined: Wed Apr 27, 2011 2:12 pm

Re: How to create a RAM disk in Livecode

Post by karmacomposer » Fri Apr 14, 2023 8:17 pm

FourthWorld wrote:
Fri Apr 14, 2023 5:00 pm
I have a solution, Mike. But Klaus is a colleague I've known for more than two decades, and I can't in good conscience lend my expertise to a situation that is harmful to him.

Please resolve the matter with Klaus, and when both of you confirm a mutually-satisfying solution has been arrived at I'll be happy to help.

In the course of my career as a contract developer I've also been invited to act as a non-binding mediator on a few occasions, to help negotiate matters like this. I would volunteer to do so here via private email if that would help.

But by whatever means, this situation has continued for years now, and it needs to be resolved.

It needn't be resolved here. These are LiveCode support forums, and should remain so. Personal matters are best resolved through private channels.

You're both earnest professionals and I'm confident a solution can be arrived at. Please contact Klaus and make arrangements. Thank you.
As I said in another post, no one has all the info and there is no way Klaus will admit to it, but he overcharged us by a HUGE sum of money with no warning that was not agreed on ahead of time. We paid plenty of money for code I literally had to re-write because what he wrote broke my code. He did not understand what we needed fully at the time and had to do things his way, not ours. In the end, it all had to be scrapped and re-written from the ground up.

To make matters worse, I had a car accident where we rolled 5 times and was hospitalized - so I had to re-write all of this while extremely injured. To say this is a sore subject is an understatement.

At the moment, I am broke. When I am paid by some clients, I will likely pay Klaus $100 to shut him up already.

I am done with all of this. Everyone may think that Klaus is an angel, but he's not.

Mike
Last edited by karmacomposer on Fri Apr 14, 2023 8:19 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: How to create a RAM disk in Livecode

Post by richmond62 » Fri Nov 08, 2024 1:14 pm

Um: this rather non-professional flame throwing might be better were it deleted.

And while someone maybe 'no angel' (I'd tell you that no one is an angel if I didn't think that with a moment's reflection you could work that out yourself), and we ALL have bad sides: apart from the odd vaguely sarcastic remark, I have never been burnt by the person in question, in fact far from it: nothing but helpful over a 23 year period.

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: How to create a RAM disk in Livecode

Post by SparkOut » Fri Nov 08, 2024 6:50 pm

The flaming had long since died down to cold ashes, until the thread was reignited by a seemingly AI generated post.
Is codexelaine really using LiveCode for anything?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: How to create a RAM disk in Livecode

Post by dunbarx » Fri Nov 08, 2024 7:02 pm

Sparkout.

Intriguing that you think AI generated codexElaine's post. It sound legit to me. But if not, we are getting into scary waters. That short post is really, er, life-like. :cry:

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: How to create a RAM disk in Livecode

Post by dunbarx » Fri Nov 08, 2024 7:05 pm

There is another post by, um, Elaine:
viewtopic.php?f=93&t=38861&p=232416#p232416
Reading that, composition and wording are precise and to the point. No comment on actual accuracy.

Too precise and too pointed?

We are doomed?

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: How to create a RAM disk in Livecode

Post by richmond62 » Fri Nov 08, 2024 7:27 pm

Maybe that 'reviver' is NOT an A.I. bot, but just a plain, old-fashioned sh*t stirrer.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: How to create a RAM disk in Livecode

Post by jacque » Fri Nov 08, 2024 7:43 pm

I always look at the poster's profile when in doubt. This one joined the same day "she" posted 2 generic messages. I always suspect AI when that happens. AI is getting very sophisticated these days.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: How to create a RAM disk in Livecode

Post by richmond62 » Fri Nov 08, 2024 7:45 pm

As usual, you are right on the money. 8)

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: How to create a RAM disk in Livecode

Post by dunbarx » Fri Nov 08, 2024 8:00 pm

Looks like AI.

But someone must be at least familiar with LC, if not a user, to be here in the first place, and take the time to create the, er, content.

So cummon, human, show yourself.

Craig

Post Reply