Search found 38 matches

by Godzilla
Thursday 24th October 2019 11:27am
Forum: General
Topic: Object serialization, allowing save and load of class structure data
Replies: 9
Views: 330

Re: Object serialization, allowing save and load of class structure data

@Godzilla, This is another area that I'm glad someone is tackling. I used to do this in C# but am still too new in Gambas and am still catching up yet. This is huge (as in 'important'); Keep up the good work! 8-) Steve Hey Steve, thank you for your reply and interest. Yes, S/D is really nothing new...
by Godzilla
Thursday 24th October 2019 10:34am
Forum: General
Topic: Object serialization, allowing save and load of class structure data
Replies: 9
Views: 330

Re: Object serialization, allowing save and load of class structure data

Hi Godzilla, I must say I find this a quite interesting concept you've been working on. Could you post the application with all added corrections so I can have a closer look at it all. I might have some good use for it in one of my projects. And thanks for figuring it all out ;) Hey gbWilly, thank ...
by Godzilla
Wednesday 23rd October 2019 9:39am
Forum: General
Topic: Object serialization, allowing save and load of class structure data
Replies: 9
Views: 330

Re: Object serialization, allowing save and load of class structure data

Hey all, I wanted to pass along some important info regarding object serialization/deserialization (S/D), for anyone who may be using it. I don't know if its a bug, per se, but its something that resulted in seemingly random corruption of the binary files, in which serialized objects were being writ...
by Godzilla
Sunday 20th October 2019 1:11am
Forum: General
Topic: Task/Multi-thread processing, queue many tasks while detecting/using your available cores
Replies: 2
Views: 123

Re: Task/Multi-thread processing, queue many tasks while detecting/using your available cores

Thank You, Godzilla, for continuing to shine a light on this area. 8-) As Gambas users figure out ' when ' to use multi-processing, hopefully much of the ' how ' will be demonstrated by folks like you. Hey sjsepan, thanks for your reply and for your interest in this. I had a lot of fun working on t...
by Godzilla
Saturday 19th October 2019 9:12am
Forum: General
Topic: Task/Multi-thread processing, queue many tasks while detecting/using your available cores
Replies: 2
Views: 123

Task/Multi-thread processing, queue many tasks while detecting/using your available cores

For anyone interested, I've been continuing my research into using multi-processing using all available cores, Previously, I came up with a way of communicating post-processed data from detached Task processes back to the parent Gambas program, making multi-processing into something usable. But I wa...
by Godzilla
Thursday 17th October 2019 6:00pm
Forum: General
Topic: [Solved] Attempted update blew Gambas away
Replies: 7
Views: 182

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...
by Godzilla
Friday 11th October 2019 7:20am
Forum: General
Topic: Object serialization, allowing save and load of class structure data
Replies: 9
Views: 330

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...
by Godzilla
Thursday 10th October 2019 10:29am
Forum: General
Topic: Pass an array from one Gambas program to another?
Replies: 19
Views: 1345

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...
by Godzilla
Wednesday 09th October 2019 8:07am
Forum: General
Topic: Object serialization, allowing save and load of class structure data
Replies: 9
Views: 330

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, ...
by Godzilla
Tuesday 08th October 2019 7:32am
Forum: General
Topic: Object serialization, allowing save and load of class structure data
Replies: 9
Views: 330

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...