Thanks Igor! :)

After trying in in a fresh Pharo3.0 Latest update: #30703 I loaded slice 12674 
the
test for NB are green and 

    (NBExternalTypeValue ofType: 'NBInt64').

now finally works. With this now "PUnQLite" package can be loaded again in 
Pharo 3.0 
without errors:
  
    Gofer new
      url: 'http://smalltalkhub.com/mc/MasashiUmezawa/PunQLite/main';
      package: 'ConfigurationOfPunQLite';
      load.
    (Smalltalk at: #ConfigurationOfPunQLite) load

The examples from https://github.com/mumez/PunQLite work, EXCEPT one:

    "Import from files"
    db := PqDatabase open: 'mczCache.db'.
    (FileSystem workingDirectory / 'package-cache') files do: [:each | 
       (db importAt: each basename fromFile: each pathString)
           ifTrue: [db commitTransaction].
     ].
     db keys inspect.
     db close.

which first gives an "PqCursor" error and when run for a second time leads to
a hard VM CRASH (on Windows 8). Anyone able to reproduce?

Note that one requires UnQLite library to reproduce which is prebuilt here:

  https://github.com/mumez/PunQLite/tree/master/binary

I guess it is somewhere in #importAt:fromFile: which uses memory mapped files...

Bye
T.

 

Gesendet: Freitag, 17. Januar 2014 um 20:55 Uhr
Von: "Igor Stasenko" <[email protected]>
An: "Pharo Development List" <[email protected]>
Betreff: Re: [Pharo-dev] IncompatibleLayoutConflict with NativeBoost in recent 
#30700

 
 
On 17 January 2014 20:13, Torsten Bergmann <[email protected]> wrote:
Camille wrote:
>It works and it's commited. 
 Thanks! Still there is a problem:

  (NBExternalTypeValue ofType: 'NBInt64').

in a Pharo3.0 Latest update: #30703 (with the fix integrated) throws
now an #DNU because the new anonymous subclass of NBExternalTypeValue
class does not understand #rebuildFieldAccessors

NBExternalTypeValue(class)>>valueType: sends #rebuildFieldAccessors
but there is no such method in this hierarchy.

But there is NBExternalStructure>>rebuildFieldAccessors and
NBExternalTypeValue(class)>>installAccessors.

Maybe a leftover from refactoring?
 
 
fix in inbox
https://pharo.fogbugz.com/f/cases/12674/Fix-NBExternalTypeValue-initialization[https://pharo.fogbugz.com/f/cases/12674/Fix-NBExternalTypeValue-initialization]
 Thx
Torsten
 


--
Best regards,
Igor Stasenko.

Reply via email to