Re: problem: gtk_image gives critical error



Hello,

Thanks alot !
I used g_new() and allocated memory using heap. This I
did in funcl then passed the address to callback also
and in the callback also I used heap.
It worked for me !

Anyway I learnt alot from here !
Regards

--- "David Necas (Yeti)" <yeti physics muni cz> wrote:

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.




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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