Re: problem: gtk_image gives critical error



On Tue, Apr 18, 2006 at 03:42:43AM -0700, Deependra Shekhawat wrote:
When I print the address of p in the funcl it prints a

address.
In the callback function it also prints the same for 
ptr.
Then what's the problem.

The address does not change, but the part of stack it points
to is overwritten meanwhile.

Also I use structures to pass data all the time to
the callback function then there's no error but with
this image widget there seems any problem.
Please clarify if I have any alternatives 

Allocate the structures on heap (for example).

Yeti


--
That's enough.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]