comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Arithmetic Errors Windows 64-bit Object Graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Arithmetic Errors Windows 64-bit Object Graphics [message #69151 is a reply to message #69149] Fri, 11 December 2009 08:17 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> OK, this turns out to be a problem with the RETAIN=2
> keyword on the Draw Widget. For some reason, with
> IDL maintaining the backing store on 64-bit Windows
> versions, an error is thrown. I'll report it to ITTVIS.

One more update. I can fix this problem in either of
two ways. I can use software rendering instead of
hardware rendering, which fixes it for *me* if not
for the rest of the world. Or, I can do my own backing
store by using EXPOSE events. This is how I used to do
all my object graphics programs and the code is already
in place to do this, so this is how I'll fix this.

I'm told this kind of exception is extremely common
with hardware rendering of object graphics code. So
much so, that a great deal of code exists that turns
off exception handling when calling the Draw method
on IDLgrWindows. (Perhaps the reason we don't see the
problem in iTools. :-)


PRO CallDrawMethodWithoutErrors, thisWindow, thisView

exceptSave = !Except
!Except = 0
thisWindow-> Draw, thisView
dummy = Check_Math()
!Except = exceptSave

END

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: 2 IDLDE questions
Next Topic: Re: Catalyst Object Widget Hierarchy

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:01:11 PDT 2025

Total time taken to generate the page: 0.01609 seconds