Quote:
Originally Posted by Nightfox
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.