realbasic-games
[Top] [All Lists]

Re: RB3DSpace.GetPicture problem

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: RB3DSpace.GetPicture problem
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 24 Aug 2004 20:57:53 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <3ED99FEE-F62B-11D8-B7B0-0030653DED16 at telia dot com>
At 2:11 AM +0200 8/25/04, Rasmus Lindén wrote:

When I try to use RB3DSpace.GetPicture, it always returns nil. This is the code I'm using:

  Dim f As FolderItem
  Dim p As Picture

  ScreenshotNumber = ScreenshotNumber + 1

  p = MainWindow.RB3DSpace.GetPicture

  if p <> nil then
    f = GetFolderItem("Screenshot " + Str(ScreenshotNumber))

    f.SaveAsPicture p
  end if

Exception err as NilObjectException
  Debug "Couldn't get RB3DSpace picture!"

Are you sure it's nil? You wouldn't see the Debug message in that case. You've stepped through it and confirmed that p is, in fact, nil?

If so, then I have no idea -- I've used it and it certainly works in my hands. Perhaps you'll need to post more details about what OS you're using, version thereof, version of RB/Quesa, etc.

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>