The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Loading runtime patches

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Loading runtime patches Posted: Aug 23, 2006 10:43 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Loading runtime patches
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

On the vwnc mailing list, a question came up about loading patch parcels at runtime:

I'm having problems loading "patch" parcels into a runtime image, because Overrides happen to access class comments and method sources (which are absent from the runtime product). It's getting more and more frustrating to poke around in the Override class tree and apply fixes here and there ... Is there a better and simpler solution for this?

As it happens, I load updates at runtime in BottomFeeder, and those updates have had to deal with the same problems. You have to be ready to handle a few exceptions during the parcel load. In a development image, you'll get prompted for some of these issues, whereas in a runtime you just want to have the load happen. Here's the code I use:

[[Parcel loadParcelFrom: parcelFile] on: Parcel parcelAlreadyLoadedSignal, CodeStorageError
                do: [:ex | ex resume: true]] 
                        on: DuplicateBindingsError
                        do: [:ex | ex resume]


What that does is ignore overrides and "already loaded" issues, and just plows forward. For some applications, you might care more deeply about those exceptions, and want to act differently.

Technorati Tags:

Read: Loading runtime patches

Topic: Podtech needs a website Previous Topic   Next Topic Topic: Reality sets in

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use