Oops, sorry, I was misslead by Steph reply.
Some of the comments might still hold. For the *time: ’05:45’* code to
work, you would need FFI to handle all the hassle of memory management and
actually allocate the memory for 5 characters and copying it. I never used
FFI but I doubt it does this.
Lo
Hi Annick !
I'll explain first why you got the error.
The assignment time: ’05:45’ failed because you tried to put an array of
char (of size 5*sizeof(char)) inside an address.
At some point, you need to allocate the memory that will hold the data. In
your case, you can do it quite easily with th
rst time they
> are executed) and when sessionId changes (because you may be on a different
> platform).
> So this is already like that. The assembly code is cached in the method
> literal.
>
> Stef
>
> On 7/8/14 17:25, Thomas Bany wrote:
>
>> Hi everyone,
>>
&g
hope it help :)
>
> On a side note:
>
>- Pharo 3, Win 7 32-bit
>- I'm not at work anymore and don't have my code with me. So I will
>double check tomorow that I didn't provided false informations but I think
>it's accurate of what I do.
>
>
lios :
> I think that if you posted the code , preferably that contains only the
> problem would be easier to test , debug and investigate.
>
>
>
> On Thu, Aug 7, 2014 at 6:25 PM, Thomas Bany wrote:
>
>> Hi everyone,
>>
>> I'm trying to reduce the comput
Hi everyone,
I'm trying to reduce the computation time of the following pseudo-code:
- memory allocation (~40 doubles)
- object heap to C heap copying
- NativeBoost call (nbCall:)
- memory freeing
The time profiling results are bellow:
- 24*3600 calls : > 1 minute
- 24*3600 calls with only memo
Going through the execution of 'openWithSpec', it looks like the method you
are looking for is 'buildWithSpec'. It definitely instantiate the adapters
as well as the morphs, with the root of the morph tree being nil.
I can't tell you if everything will work as intended though, but I don't
see why
Okey, I hadn't read your question carefully :)
Looking at TextModel>>sourceTextArea, it returns the widget of the model,
meaning the adapter to PluggableTextMorph. The adapter (and the Morph
behind) is instantiated during the building (called in openWithSpec) of the
model, not its initialization.
Hi !
Did you call 'super initailizeWidgets' in the 'initializeWidgets' method of
all the subclass of AbstractPanel ?
Thomas.
2014-08-06 11:16 GMT+02:00 Mark Rizun :
> Actually in each:)
> I have a class AbstractPanel and there is:
>
> initializeWidgets
> self instantiateModels: #(#templateT
All right !
Tanks again for you answers and kudos for the NB plugin ! I was kinda
scared of doing stuff outside of the image but everything went super smooth.
2014-08-05 16:45 GMT+02:00 Igor Stasenko :
>
>
>
> On 4 August 2014 16:45, Thomas Bany wrote:
>
>> Hi again
Hi again !
I'm having trouble to call the function with the following prototype :
void propagateTLE(orbit_t orb, double secondSince[], xyz_t * out, size_t
> nbEpoch)
with the corresponding NB call:
self nbCall: #( void propagateTLE(orbit_t orbit, double * secondSince,
> xyz_t * out, size_t nb
structure might sovle
it !
Thanks a lot for the quick response !!
2014-08-04 13:18 GMT+02:00 Igor Stasenko :
>
>
>
> On 4 August 2014 12:37, Thomas Bany wrote:
>
>> Hi everyone !
>>
>> I experience troubles with NBExternalStructure in NativeBoost when the
>
Hi everyone !
I experience troubles with NBExternalStructure in NativeBoost when the
structure modeled contains fields with different types. For example,
manipulating the following structure poses no problem and I can manipulate
the fields correctly:
typedef struct abc_s {
double a;
double b;
dou
Okey so I have found the Class instance that was holding onto the data. I
can now save my image after a parsing without tripling its size.
But the VM's memory footprint (according to Windows task manager) does not
falls back to normal after a parse. My guess is that now that the VM was
allocated m
eed to override that method to get the usage you want :)
>
> cheers,
> Esteban
>
> On 10 Apr 2014, at 11:09, Thomas Bany wrote:
>
> > Hi !
> >
> > I'm developping a desktop application for Windows and I want to prevent
> the user from saving the image.
>
Hi !
I'm developping a desktop application for Windows and I want to prevent the
user from saving the image.
First off, setting the #canSaveImage permission to false does not seems to
prevent saving. But it's okey since the user won't have access to the World
Menu.
However, upon quitting the VM,
your
> problem, then we could try to help.
>
> Sven
>
> On 09 Apr 2014, at 12:54, Thomas Bany wrote:
>
> > Hi,
> >
> > My app is a parser/filter for binary files, that produces a bunch of
> ascii files.
> >
> > At the begining of the parsing
I meant a single array weight something like 300Kb with the 32 of them
weighting arround 10Mb.
I tried to look closely at the way the memory (with
VirtualMachine>#memoryEnd) was incrementing and it follows this pattern:
- The memory costly function is defenitly the one storing my position
a
Hi,
My app is a parser/filter for binary files, that produces a bunch of ascii
files.
At the begining of the parsing, the filtering step involves the storage of
the positions of 32 objects, each second for a whole day. So that's 32
Arrays with 86400 elements each.
During this step, the memory us
Hi !
I use #setToEnd.
Cheers
2014-04-09 10:08 GMT+02:00 Norbert Hartl :
> How can I open a file in append mode in order to start writing at the end
> of the file?
>
> thanks,
>
> Norbert
>
>
> Why do you need a dialog window in fullscreen size, if it is modal anyway
> ?
>
Actualy, I need it to be fullscreen. I mentioned a dialog window because I
was only able to retrieve the answer this way but I don't want a dialog
window :)
> Have you tried FileList (it isn't fullscreen, and doe
Okey so I only needed to select a directory and needed to shrink the size
of the widget anyway. So I opted for the sublass solution, got rid of the
file pane and added an action block on the #ok method.
2014-04-07 16:12 GMT+02:00 Thomas Bany :
> Hi !
>
> I'm trying to fit a GUI
Hi !
I'm trying to fit a GUI in full screen mode, that uses a FileDialogWindow
at some point.
I'm able to recover the answer from FileDialogWindow when I it is opened
modaly. However, since I would like to open it fullscreen with the selector
#openFullScreen, the calling block does not wait and i
since #addDependent: is send with a morph to the model and I
needed the other way arround.
Adding #beDependentTo: somewhere in the class hierarchy of
SimpleSwitchMorph make it work but I'm not sure I should do that.
2014-04-03 20:37 GMT+02:00 Thomas Bany :
> Hum, I was pondering the problem at hom
Hum, I was pondering the problem at home and started from scratch. I don't
have the issue anymore ...
2014-04-03 18:40 GMT+02:00 Thomas Bany :
> Hey,
>
> I have a quick question. I'm trying to build an adapter (called
> MorphicSwitchAdapter) and a model for SimpleSwitchM
Hey,
I have a quick question. I'm trying to build an adapter (called
MorphicSwitchAdapter) and a model for SimpleSwitchMorp. I based my layout
on the ones in existing adapter (namely MorphicButtonAdapter).
And I get stuck in an infinite loop during the interpretation of the layout
of the adapter.
>
> The usual solution is to have a method looking like this on instance side
>
> rebuildMyLayout
>
> | layout |
> layout := self buildStateDependentLayout.
> self buildWithLayout: layout.
>
> buildStateDependentLayout
> ^ SpecLayout composed
> etc...
>
I will defenitly look into that. The "rebui
Hi !
First, I apologyse for the wall of text.
I'm trying my hands at Spec and I have few questions:
- How can I implement an instance-dependent layout ?
Regarding the layout method lookup, the documentation states that it
"starts on instance side, which allows a UI to have a more specific la
28 matches
Mail list logo