VWave 1.0 (VW 2.5 may apply) 
Author Message
 VWave 1.0 (VW 2.5 may apply)

I am currently using VisualWave 1.0 but VisualWorks 2.5 gives me the same kind of problems.

I have an application that upon initialization(initialize) a DB connection is established. I
am attempting to add error handling around the connection creation that would present an
error screen (page) upon start-up instead of the primary main menu screen (page) that was
attempted in the launch.

I have attempted moving the DB initialization code from initialize to postBuildWith: and
postOpenWith: and cannot get the error screen to display properly. I either get the screen
to my console or no screen at all and an error when I attempt a closeRequest on the original
main menu screen.

Can someone help me in getting the ApplicationModels to open and close correctly?

Code: called from 'initialize'


        | connection |

        connection := OracleConnection new.
        connection class externalDatabaseErrorSignal
                handle: [ :ex |
                        self openSystemErrorView: message.
                        self closeRequest.
                do:     [
                        username: self loginID;
                                password: self password;
                                environment: self server.
                                connection connect.

                        dbConnection := connection.

openSystemError: aError
        "open system error view"

        | application |

        application := MSESystemErrorView new.
        application messageError: aError.

        application := self open: application interface: #windowSpec.
        application window
                application: self;

Hank Harris

Sat, 09 Jan 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Help: VW Smalltalk 2.5

2. VW 2.5 startup screen HELP

3. Stone Age text editing in VW 2.5

4. Sound in VW 2.5

5. VW 2.5 Rubberbanding, howto?

6. VW 2.5 MultiRow Select Table Widget Needed

7. VW 2.5 menuBar hide, show

8. VW 2.5 automated testing tools

9. Sound in VW 2.5

10. PC Serial Port from VW 2.5

11. HELP: VW 2.5 Mac -> WinNT Port

12. VW 2.5 on MAC


Powered by phpBB® Forum Software