|
Posted By
|
Message
|
 nim
Registered 5/17/2002
Points 7049
|
18th August, 2012 at 8/18/2012 12:27:51 AM -
Hi,
I'm using blowfish to encrypt/decrypt a data file at the start of the game, but sometimes the whole program crashes. I'm not sure of the problem but after removing the blowfish extension the game works without problems. Has anyone ever had problems with the blowfish extension or program crashing caused by encrypting files?
I wish I could give more information but I don't know why it's happening. The code tells blowfish to decrypt the file, read values (loads them into globals) then decrypt the file again, all in a short space of time. I'm wondering if sometimes the file is decrypted in time to load the values and sometimes it's not, depending on where the hd heads are.. or something? (I'm not sure why that would cause a crash, though)
Any input would be appreciated. Cheers!
//
|
 -UrbanMonk- Professor Spectrum
Registered 7/7/2008
Points 6123
       
|
18th August, 2012 at 8/18/2012 12:36:09 AM -
I've built a program that decrypts and loads then encrypts 20 or so files all in one event and it never gave me any trouble.
It might have been because I have a decent machine, but idk.
http://www.soapcow.com <- Flash games, featuring MMF made games!
http://www.jsoftgames.com <- Old blog I don't keep up anymore
|
 nim
Registered 5/17/2002
Points 7049
|
18th August, 2012 at 8/18/2012 3:05:53 AM -
Thanks, that's good to know. I had a problem with modfusion crashing while trying to load and play a music file in one event. Sometimes it would load in time, sometimes it wouldn't and crash out. Anything special I should know about the Blowfish extension? You just set a key and encrypt/decrypt, right?
//
|
 nim
Registered 5/17/2002
Points 7049
|
18th August, 2012 at 8/18/2012 4:16:58 PM -
I think this might be something different after all. I'll have to look into this more. F2 restart still crashes the game ~50% of the time.
Thanks again for your help.
//
|
|
|
|