Search found 63 matches
- Thursday 17th October 2019 6:00pm
- Forum: General
- Topic: [Solved] Attempted update blew Gambas away
- Replies: 7
- Views: 7410
Re: Attempted update blew Gambas away
Hey issboss, I've had crazy issues in the past when attempting to upgrade Gambas (no issues with recent upgrades, though). I don't know if what I did will help your particular situation, but it resolved my problems. If I were in your situation, I'd upgrade to the latest Ubuntu first. But you may hav...
- Friday 11th October 2019 7:20am
- Forum: General
- Topic: Object serialization, allowing save and load of class structure data
- Replies: 9
- Views: 9951
Re: Object serialization, allowing save and load of class structure data
For the sake of completeness, I've taken Jussi Lahtinen's object serialization code and completed it by adding support for all the variables that he hadn't taken the time to include. They are Single, Float, Variant, Object, and Pointer. So now it includes the entire spectrum of Gambas variables. I h...
- Thursday 10th October 2019 10:29am
- Forum: General
- Topic: Pass an array from one Gambas program to another?
- Replies: 19
- Views: 20527
Re: Pass an array from one Gambas program to another?
Ok, so I got this working 100%. Quite a feat! And I must give credit to cogier and his friend for letting me know that the Task method even existed, along with an example project to work with. FYI, in this post I use Task, Fork, parallel processing, multi-processing interchangeably. Its all referrin...
- Wednesday 9th October 2019 8:07am
- Forum: General
- Topic: Object serialization, allowing save and load of class structure data
- Replies: 9
- Views: 9951
Re: Object serialization, allowing save and load of class structure data
Hey cogier, Thanks for your reply. Once again, I neglected to take the time to explain what my project actually does. Kicking myself to not do that again. In layman's terms, object serialization is basically File.Save and File.Load on steroids. Its a way of saving and loading of complex structures, ...
- Tuesday 8th October 2019 7:32am
- Forum: General
- Topic: Object serialization, allowing save and load of class structure data
- Replies: 9
- Views: 9951
Re: Object serialization, allowing save and load of class structure data
Got it! My mistake was I thought I'd have to somehow change the SaveValues and LoadValues functions to work with arrays. That turned out to be unnecessary. The attached project saves and loads a 3-field structured class array. And it even has a generate button to automatically populate fields, if yo...
- Monday 7th October 2019 8:38am
- Forum: General
- Topic: Object serialization, allowing save and load of class structure data
- Replies: 9
- Views: 9951
Object serialization, allowing save and load of class structure data
This is a pending solution to the problem I had with my experiment with the Task method (Task_Test) in my other thread, where data contained inside structured class arrays would mysteriously vanish after the Tasks/Forks had completed their cycles. However, I felt this object serialization code, in a...
- Wednesday 2nd October 2019 6:36pm
- Forum: General
- Topic: Pass an array from one Gambas program to another?
- Replies: 19
- Views: 20527
Re: Pass an array from one Gambas program to another?
cogier, I really appreciate the time you took to look into this and search for a solution. I also appreciate the enhancements to the code to simplify the code. Tonight I'll add those modifications to the code and re-upload it for the benefit of others, but in a rush at the moment to get to work. Yes...
- Wednesday 2nd October 2019 11:03am
- Forum: General
- Topic: Pass an array from one Gambas program to another?
- Replies: 19
- Views: 20527
Re: Pass an array from one Gambas program to another?
Hey cogier, So I figured out a way to get the Task method to call 4 subroutines in parallel. It works astonishingly well. I couldn't have asked for a better solution to my original post. However, there's one problem I can't figure out. The subroutines called by the Task process simply sort various f...
- Friday 27th September 2019 8:21am
- Forum: General
- Topic: Pass an array from one Gambas program to another?
- Replies: 19
- Views: 20527
Re: Pass an array from one Gambas program to another?
No it was me :? . I did not run 'TaskCPUMax_Godzilla'. I got very similar results as you 15, 16, 36 secs which shows that the 'Task' method is the easiest and the best. You could also make a Class for each of the tasks you need to complete if the tasks are not the same. Tip: - If you want to put Ga...
- Wednesday 25th September 2019 6:31pm
- Forum: General
- Topic: Pass an array from one Gambas program to another?
- Replies: 19
- Views: 20527
Re: Pass an array from one Gambas program to another?
I'm not sure I understand what I am supposed to do. I don't seem to have the extra buttons all I have is as below. Did I do something wrong? http://www.cogier.com/gambas/2345.png Hey cogier, With "TaskCPUMax_Godzilla", its all been altered slightly, for the sake of benchmarking. We're usi...