In article <[email protected]>,
 Greg Ercolano <[email protected]> wrote:

> Janus wrote:
> > your code works here, as a standalone application only. my code is 
> > basically the same but doesnt work in my app:
> 
>       Since it seems to be a good indicator of a problem in your case,
>       try making my code a function in your app, and call that function
>       at the top of your main, and pepper calls to it at key points
>       throughout your app.

i did that yesterday and it didn't work. now things have changed a bit. 
it works but i don't know why. i have moved some declarations and 
includes in the meantime (basically i cleaned up a bit) but i can't see 
how this effected this issue.

what is interesting tho' and may explain things (certainly not to me): i 
have the function you have posted included in my main.C and can call it 
anywhere in main() BUT: if i move the call to the function in main() 
(like from being the very first function being called to the end of 
main()) and recompile just main.C  (just 'make') the function will fail 
(i get garbage only). OTOH, if i 'make clean' first and rebuild 
everything, it's alright again! does that make any sense to you? i mean 
- i don't even move the function around, only the call to it in main() 
and i have to rebuild everything?


>       BTW, if you're using 1.1.10, be sure to free the dlist somehow,
>       so that it doesn't leave lots of memory allocated. (This might
>       affect the behavior of your app, since it makes more and more
>       potentially wild memory become 'valid memory')

yeah, i got the cleanup code from the documentation :)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to