Page 1 of 1

console says weird things to me :(

Posted: Fri Jun 13, 2008 11:40 pm
by veganisafreak
Okay I installed PB on Ubuntu and I got the gtk+, sdl packages and some others that looked important with Synaptic. I thought I could leave the movie playing packages or whatever until later. The GUI examples seem to be working okay. But I wrote this console application:

Code: Select all

OpenConsole()
Print("Hiya!")
Input()
End
When I run it it outputs:

(purebasic:12602): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17

(purebasic:12602): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion `width >= -1' failed

(purebasic:12602): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17

(purebasic:12602): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion `width >= -1' failed
Hiya!
(purebasic:12602): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion `width >= -1' failed

***

This is somewhat annoying. Any ideas what's wrong? Thanks

Re: console says weird things to me :(

Posted: Fri Jun 13, 2008 11:48 pm
by veganisafreak
Also, if I launch Purebasic from its icon, instead of from a console, my program just starts and then exits immediately...

Posted: Sun Jun 15, 2008 11:40 am
by walker
did you change the compiler options the executable format to console? I guess that's what's missing here...

Posted: Mon Jun 16, 2008 4:14 pm
by veganisafreak
Hey thanks loads it's working now!

It still spits out the errors but they go to the parent console. the "child" console or whatever you call it, is empty apart from my message. :)

I'm still a little curious what the errors are about tho. Oh well it's not affecting the functionality.

Posted: Mon Jun 16, 2008 4:22 pm
by Trond
It's errors from the IDE.