Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!news.alpha.net!uwm.edu!lll-winken.llnl.gov!uop!csus.edu!netcom.com!marsys
From: marsys@netcom.com (Larry Marshall)
Subject: Stream and TextPane misunderstanding - mine
Message-ID: <marsysD995EG.1v3@netcom.com>
Sender: marsys@netcom17.netcom.com
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
X-Newsreader: Forte Free Agent v0.46
Date: Sat, 27 May 1995 19:41:16 GMT
Lines: 21

Using Digitalk's ST v2.0 Win32, I have defined a method,
	method: aStream

I have called that method somewhere else:
	method: aTextPane

and the application crashes not understanding "height".
In the original method there is a statement:
	aStream cr;
That calls the cr method in TextPane which itself calls
forceEndOntoDisplay which finally attempts to execute
    	    height := rectangle height // curFont height.

I guess that I cannot a stream and textpane are not interchangeable.
What can I do to the original method to make it work?

TIA.




