View Single Post
Old 30 September 2020, 19:23   #5
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,233
Quote:
Originally Posted by Nightfox View Post
Hi all.

I've been pulling my hair out trying to open console.device.

I can open the screen, window, port and IORequest fine.. but it fails when I call OpenDevice().
Actually, it does not. OpenDevice() returns an error code, and thus 0 for success.


Note, however, that you should release resources even in case of failure. That is, if you open a library, and some code following it fails, you still need to close the library. If you open a screen, and opening a window fails, you need to close the screen.
Thomas Richter is offline  
 
Page generated in 0.04195 seconds with 11 queries