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

Home » Public Forums » archive » Re: Pointers problem - Unable to dereference NULL pointer
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: Pointers problem - Unable to dereference NULL pointer [message #57213 is a reply to message #57208] Thu, 06 December 2007 05:17 Go to previous messageGo to previous message
Romolo Politi is currently offline  Romolo Politi
Messages: 6
Registered: December 2007
Junior Member
On 5 Dic, 19:00, David Fanning <n...@dfanning.com> wrote:
> Romolo Politi writes:
>> I used pointers to share variables between different procedures.
>> When I compile the project it's all right. If I export the project
>> as .sav there is the error "Unable to dereference NULL pointer".
>> Someone just encountred this problem?
>
> My guess would be that the pointer never got filled
> with data because the program couldn't find the data
> file. You are catching errors, and popping up a dialog
> message, right? So you would know if an error occurred
> in your program during runtime. The data file will,
> unless you are doing something special, have to be
> in the same location as the save file.
>
> 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.")

In may case the main program create the pointer, fill it, and then
call the procedure for the widget creation.
the data are writen in the source.

wdg=ptr_new({id:0,set:0,cube:bytarr(5,5),band:0,res:0,flname : "",pre:
0,iddata:0,cmx:0,cmy:0,foc:0,circ:0})
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Slow Direct Graphics Drawing? / Mac OS X 10.5 / IDL 6.4.1
Next Topic: Re: large source trees and networked paths in 7.0

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

Current Time: Sat Oct 11 04:10:54 PDT 2025

Total time taken to generate the page: 0.15570 seconds