On Apr 2, 2007, at 10:55 AM, Arnaud Nicolet wrote: > I asked because I read somewhere that New Picture and NewPicture > where the same thing (so I thought: "New Picture" is not really > constructed with "New" but is connected to NewPicture"). I think I > read that in the language reference.
The actual language reference for the NewPicture Function is: If the application doesn't have enough memory to create the new picture, it will be Nil. The way to detect this is to immediately test for a Nil Picture object immediately after calling NewPicture. This is done in the example in the following section. Alternatively, you can create a new picture using the New operator instead of using NewPicture. The parameters are the same in either case (width, height, depth), but when you use New, an OutOfMemoryException will be raised if there is insufficient memory to create the requested pixel map. So the big difference between the two is the type of error generated and how to handle it. Terry _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
