Karmic sqlite problem.

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Karmic sqlite problem.

by R. Stormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

After installing ubuntu karmic I'm not able to start my program anymore. It uses sqlite.
With default package from repo, 2.13 , I manage to open database manager . I can see the tables but when I press one of the tables it do hang.
So I tried to download latest, 2.17. I'm not able to access database manager at all. I have installed all the lib's that are explaned on readthis site.
This is what the output says after I hit the first screen ask to insert password/security key.
--
(gambas2-database-manager.gambas:2187): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed
--

Please advise.
Regards R. Stormo


My Gambas Community http://gambasforum.tk

Re: Karmic sqlite problem.

by Ron Klinkien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

R. Stormo wrote:

> After installing ubuntu karmic I'm not able to start my program anymore. It
> uses sqlite.
> With default package from repo, 2.13 , I manage to open database manager . I
> can see the tables but when I press one of the tables it do hang.
> So I tried to download latest, 2.17. I'm not able to access database manager
> at all. I have installed all the lib's that are explaned on readthis site.
> This is what the output says after I hit the first screen ask to insert
> password/security key.
> --
> (gambas2-database-manager.gambas:2187): GLib-GObject-CRITICAL **:
> g_object_get_data: assertion `G_IS_OBJECT (object)' failed
> --
>
> Please advise.
>
>
> -----
> Regards R. Stormo
>  
I'm running Karmic too now, and I can use my software with MySQL
database on it, no problem.

But the database manager is acting quite strangely too here, after
creating the first connection (localhost, type mysql, sql user and
password, db name) it closed right after that.
When I reopened it, it works, that is I can view my the database layout
and table fields, but not their content (data tab) See attachment.
If I view the About window via ? menu item and click Ok, it closes
completely too, dunno if that is suppose to happen either.

I have to look into this some more if I can find the time.

No errors in my console screen.

[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.31-14-generic
CPUArchitecture=i686
DistributionVendor=ubuntu
DistributionRelease="Ubuntu 9.10"

[Gambas]
Gambas1=Not Installed
Gambas2=2.17.0
Gambas2Path=/usr/local/bin/gbx2
Gambas3=Not Installed

Regards,
Ron_2nd.



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Screenshot.png (52K) Download Attachment

Re: Karmic sqlite problem.

by Jesus Guardon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

R. Stormo escribió:

> After installing ubuntu karmic I'm not able to start my program anymore. It
> uses sqlite.
> With default package from repo, 2.13 , I manage to open database manager . I
> can see the tables but when I press one of the tables it do hang.
> So I tried to download latest, 2.17. I'm not able to access database manager
> at all. I have installed all the lib's that are explaned on readthis site.
> This is what the output says after I hit the first screen ask to insert
> password/security key.
> --
> (gambas2-database-manager.gambas:2187): GLib-GObject-CRITICAL **:
> g_object_get_data: assertion `G_IS_OBJECT (object)' failed
> --
>
> Please advise.
>
>
> -----
> Regards R. Stormo
>
>
> My Gambas Community http://gambasforum.tk
>
Same here:

(gambas2-database-manager.gambas:13749): GLib-GObject-CRITICAL **:
g_object_get_data: assertion `G_IS_OBJECT (object)' failed

-----------------
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.31-14-generic
DistributionVendor=ubuntu
DistributionRelease="Ubuntu 9.10"

[System]
CPUArchitecture=i686
TotalRam=509368 kB (VirtualBox)

[Gambas]
Gambas1=Not Installed
Gambas2=2.17.0
Gambas2Path=/usr/bin/gbx2
Gambas3=Not Installed
----------------
Regards

Jesus Guardon


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

0x15E1D3C3.asc (1K) Download Attachment

Re: Karmic sqlite problem.

by angel123 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Sorry for my bad English.

I have Ubuntu 9.10 and Gambas 2.17

My I get the same error in a program with GTK,
change to Qt library and works well.
The error is:
(facturas_pruebas: 5311): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object) 'failed

Re: Karmic sqlite problem.

by R. Stormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have been trieing to compile a little older versions of gambas to see if that will work, but that would not compile.
Hope someone have a idea how to make it compile.
I have done,
./configure
and with make I got this error, or Gambas2 2.10.2.

make[2]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.postgresql'
Making all in gb.db.sqlite3
make[2]: Entering directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3'
make  all-recursive
make[3]: Entering directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3'
Making all in src
make[4]: Entering directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3/src'
/bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer  -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.cpp
 g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp  -fPIC -DPIC -o .libs/main.o
main.cpp: In function ‘int WalkDirectory(const char*, char***)’:
main.cpp:577: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result
main.cpp:579: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result
main.cpp:594: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result
main.cpp: In function ‘int field_index(void*, const char*, DB_DATABASE*)’:
main.cpp:1011: error: invalid conversion from ‘const char*’ to ‘char*’
main.cpp: In function ‘int field_info(DB_DATABASE*, const char*, const char*, DB_FIELD*)’:
main.cpp:1811: warning: unused variable ‘db_handle’
make[4]: *** [main.lo] Error 1
make[4]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2'
make: *** [all] Error 2



Regards R. Stormo
Regards R. Stormo


My Gambas Community http://gambasforum.tk

Re: Karmic sqlite problem.

by R. Stormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tried to compile many of the previous version of gambas without luck. So I had to attach the problem by the root. Why does my program not start and do hang.??
After some forward and backward I found that my program will start with gb.gtk and gb.gtk.ext instead of gb.qt and gb.qt.ext.
Can't use gb.qtk it will not show stuff on form correctly but atleast the form do start. But NOT with gb.qt.
Is there a know problem with gb.qt and ext.?

I quite a large program so I hope not to work trough it.

Hope for some answers.
Regards R. Stormo


My Gambas Community http://gambasforum.tk

Re: Karmic sqlite problem.

by R. Stormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tried to compile many of the previous version of gambas without luck. So I had to attach the problem by the root. Why does my program not start and do hang.??
After some forward and backward I found that my program will start with gb.gtk and gb.gtk.ext instead of gb.qt and gb.qt.ext.
Can't use gb.qtk it will not show stuff on form correctly but atleast the form do start. But NOT with gb.qt.
Is there a know problem with gb.qt and ext.?

I quite a large program so I hope not to work trough it.

Hope for some answers.
Regards R. Stormo


My Gambas Community http://gambasforum.tk

Re: Karmic sqlite problem.

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Tried to compile many of the previous version of gambas without luck. So I
> had to attach the problem by the root. Why does my program not start and do
> hang.??
> After some forward and backward I found that my program will start with
> gb.gtk and gb.gtk.ext instead of gb.qt and gb.qt.ext.
> Can't use gb.qtk it will not show stuff on form correctly but atleast the
> form do start. But NOT with gb.qt.
> Is there a know problem with gb.qt and ext.?
>
> I quite a large program so I hope not to work trough it.
>
> Hope for some answers.
>
> -----
> Regards R. Stormo
>
>
> My Gambas Community http://gambasforum.tk
>

Can you try the latest fix on 2.0 from trunk? Without that fix, sometimes the
IDE cannot start the project and hangs, because of a problem in the debugger.

--
Benoît Minisini

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Karmic sqlite problem.

by R. Stormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Been trying to figure out what's going wrong and by removing everything on my startform and include one piece at the time I have come up with this.
The Fakturalist is a HBox. Also tried with other containers same result.

' This do crash in Ubuntu Karmic
'ME.Width = desktop.Width

Here is how my screen is build up.

 f1 = NEW Fkunder
 f2 = NEW Fvarer
 f3 = NEW Ffakturalist(Fakturalist)
 f4 = NEW Ffaktura
 f5 = NEW Fproject
 f6 = NEW Ffakturalist
  ' We are going to handle all tool form events here
 Object.Attach(f4, ME, "f4")

  MyArea.Add(f1)
  MyArea.Add(f2)
  MyArea.Add(f4)
  MyArea.Add(f5)
  MyArea.Add(f6)

Started the program in 2005 and it's my billing program so it's used everyday. Until I upgraded to karmic when it was released.  
So If do disable the me.width = desktop.width everything work as it should again. With the version that are in the package manager, 2.13

So maybe this is of somehelp for others or for benoit if it is a bug or not.



Regards R. Stormo


My Gambas Community http://gambasforum.tk

Re: Karmic sqlite problem.

by Ron Klinkien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ron wrote:

>
> I'm running Karmic too now, and I can use my software with MySQL
> database on it, no problem.
>
> But the database manager is acting quite strangely too here, after
> creating the first connection (localhost, type mysql, sql user and
> password, db name) it closed right after that.
> When I reopened it, it works, that is I can view my the database
> layout and table fields, but not their content (data tab) See attachment.
> If I view the About window via ? menu item and click Ok, it closes
> completely too, dunno if that is suppose to happen either.
>
> I have to look into this some more if I can find the time.
>
> No errors in my console screen.
>
> [OperatingSystem]
> OperatingSystem=Linux
> KernelRelease=2.6.31-14-generic
> CPUArchitecture=i686
> DistributionVendor=ubuntu
> DistributionRelease="Ubuntu 9.10"
>
> [Gambas]
> Gambas1=Not Installed
> Gambas2=2.17.0
> Gambas2Path=/usr/local/bin/gbx2
> Gambas3=Not Installed
>
> Regards,
> Ron_2nd.
>
>
> ------------------------------------------------------------------------
I just wanted to get Gambas database manager to work with my current OS
Ubuntu Karmic because I needed it badly, and I don't want to install
phpmysqladmin stuff.

So I loaded the  gambas/2.0/app/src/gambas2-database-manager  project in
the IDE, and changed it's project components properties from the default
gb.gui to use gb.qt and it never looked so good,  and is worked so
fine!!!!!!!

All the bugs are gone too.

I always thought the database manager looked a bit strange compared to
the IDE, but now I know why, why does gb.qui gets it wrong and loads KDE
stuff on Ubuntu (apparently) ?

Gambas2
SVN 2.17.0
Ubuntu Karmic 32 Bits

Kind Regards,
Ron_2nd.




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Screenshot gb.gui.png (52K) Download Attachment
Screenshot gb.qt.png (86K) Download Attachment

Re: Karmic sqlite problem.

by Doriano Blengino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ron ha scritto:

> Ron wrote:
>>
>> I'm running Karmic too now, and I can use my software with MySQL
>> database on it, no problem.
>>
>> But the database manager is acting quite strangely too here, after
>> creating the first connection (localhost, type mysql, sql user and
>> password, db name) it closed right after that.
>> When I reopened it, it works, that is I can view my the database
>> layout and table fields, but not their content (data tab) See
>> attachment.
>> If I view the About window via ? menu item and click Ok, it closes
>> completely too, dunno if that is suppose to happen either.
>>
>> I have to look into this some more if I can find the time.
>>
>> No errors in my console screen.
>>
>> [OperatingSystem]
>> OperatingSystem=Linux
>> KernelRelease=2.6.31-14-generic
>> CPUArchitecture=i686
>> DistributionVendor=ubuntu
>> DistributionRelease="Ubuntu 9.10"
>>
>> [Gambas]
>> Gambas1=Not Installed
>> Gambas2=2.17.0
>> Gambas2Path=/usr/local/bin/gbx2
>> Gambas3=Not Installed
>>
>> Regards,
>> Ron_2nd.
>>
>>
>> ------------------------------------------------------------------------
>
> I just wanted to get Gambas database manager to work with my current
> OS Ubuntu Karmic because I needed it badly, and I don't want to
> install phpmysqladmin stuff.
>
> So I loaded the  gambas/2.0/app/src/gambas2-database-manager  project
> in the IDE, and changed it's project components properties from the
> default gb.gui to use gb.qt and it never looked so good,  and is
> worked so fine!!!!!!!
>
> All the bugs are gone too.
>
> I always thought the database manager looked a bit strange compared to
> the IDE, but now I know why, why does gb.qui gets it wrong and loads
> KDE stuff on Ubuntu (apparently) ?
As far as I know, gb.gui loads gb.qt if running under KDE; else gb.gtk.
So on Ubuntu it should use GTK instead of QT (note that this is the
contrary of what you say).
Now the bugs you noticed are gone because you forced the app to use
gb.qt, which has less bugs than gb.gtk.

I think that gambas-database-manager, being a normal app, correctly uses
gb.gui. The gambas IDE should do it too, but it can not because GTK (or
gb.gtk) lacks some necessary controls found in QT (or gb.qt).

This gb.gui auto-switching mechanism is nice - but it can lead to
problems... I wonder about how many people like it.

Regards,
Doriano


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Karmic sqlite problem.

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
> I just wanted to get Gambas database manager to work with my current OS
> Ubuntu Karmic because I needed it badly, and I don't want to install
> phpmysqladmin stuff.
>
> So I loaded the  gambas/2.0/app/src/gambas2-database-manager  project in
> the IDE, and changed it's project components properties from the default
> gb.gui to use gb.qt and it never looked so good,  and is worked so
> fine!!!!!!!
>
> All the bugs are gone too.
>
> I always thought the database manager looked a bit strange compared to
> the IDE, but now I know why, why does gb.qui gets it wrong and loads KDE
> stuff on Ubuntu (apparently) ?
>
> Gambas2
> SVN 2.17.0
> Ubuntu Karmic 32 Bits
>
> Kind Regards,
> Ron_2nd.
>

Have you read my post "Problems with GTK+ on recent distributions (Ubuntu 9.10
for example)" ? You will have the explanation there. And thanks again to GTK+
2.18 for their non-compatible deep change in GDK!

Regards,

--
Benoît Minisini

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Karmic sqlite problem.

by R. Stormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Benoît Minisini wrote:

Can you try the latest fix on 2.0 from trunk? Without that fix, sometimes the
IDE cannot start the project and hangs, because of a problem in the debugger.

--
Benoît Minisini
I have now tried it from trunk. The problem is still there. It's not the
me.width = desktop.width it self.
The desktop.width return 1024 as my screen is.

The problem is with any values I insert to me.width.
If I try to make this as startup form, without attach it to a form everything are ok.

The problem is in
PRIVATE MyArea AS NEW Workspace(ME)

If I disable the  MyArea.Add(f6) that is my form with the me.width code in it do
work also. But then the form are not in the tabbed area in my form.
It do show in the HBOX so that is not the problem afterall.

Hope this make sense


Regards R. Stormo


My Gambas Community http://gambasforum.tk

Re: Karmic sqlite problem.

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Benoît Minisini wrote:
> > Can you try the latest fix on 2.0 from trunk? Without that fix, sometimes
> > the
> > IDE cannot start the project and hangs, because of a problem in the
> > debugger.
>
> I have now tried it from trunk. The problem is still there. It's not the
> me.width = desktop.width it self.
> The desktop.width return 1024 as my screen is.
>
> The problem is with any values I insert to me.width.
> If I try to make this as startup form, without attach it to a form
> everything are ok.
>
> The problem is in
> PRIVATE MyArea AS NEW Workspace(ME)
>
> If I disable the  MyArea.Add(f6) that is my form with the me.width code in
> it do
> work also. But then the form are not in the tabbed area in my form.
> It do show in the HBOX so that is not the problem afterall.
>
> Hope this make sense
>

Do you use the very latest revision (2409)?

--
Benoît Minisini

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Karmic sqlite problem.

by R. Stormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Benoît Minisini wrote:
> Benoît Minisini wrote:


Do you use the very latest revision (2409)?

--
Benoît Minisini
Yes, it was 2409-
-snip
top:~/trunk$ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0
Sjekket ut revisjon 2409.
rohnny-
--snap
Regards R. Stormo


My Gambas Community http://gambasforum.tk

Re: Karmic sqlite problem.

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Been trying to figure out what's going wrong and by removing everything on
>  my startform and include one piece at the time I have come up with this.
>  The Fakturalist is a HBox. Also tried with other containers same result.
>
> ' This do crash in Ubuntu Karmic
> 'ME.Width = desktop.Width
>
> Here is how my screen is build up.
>
>  f1 = NEW Fkunder
>  f2 = NEW Fvarer
>  f3 = NEW Ffakturalist(Fakturalist)
>  f4 = NEW Ffaktura
>  f5 = NEW Fproject
>  f6 = NEW Ffakturalist
>   ' We are going to handle all tool form events here
>  Object.Attach(f4, ME, "f4")
>
>   MyArea.Add(f1)
>   MyArea.Add(f2)
>   MyArea.Add(f4)
>   MyArea.Add(f5)
>   MyArea.Add(f6)
>
> Started the program in 2005 and it's my billing program so it's used
> everyday. Until I upgraded to karmic when it was released.
> So If do disable the me.width = desktop.width everything work as it should
> again. With the version that are in the package manager, 2.13
>
> So maybe this is of somehelp for others or for benoit if it is a bug or
>  not.
>
>
>
>
>
> -----
> Regards R. Stormo
>
>
> My Gambas Community http://gambasforum.tk
>

Can you provide a full project that crashes on Ubuntu 9.10, and/or behaves
strangely? Otherwise, I can't debug.

Regards,

--
Benoît Minisini

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Karmic sqlite problem.

by R. Stormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Benoît Minisini wrote:
> Been trying to figure out what's going wrong and by removing everything on
>  my startform and include one piece at the time I have come up with this.
>  The Fakturalist is a HBox. Also tried with other containers same result.
>
> ' This do crash in Ubuntu Karmic
> 'ME.Width = desktop.Width
>
> Here is how my screen is build up.
>
>  f1 = NEW Fkunder
>  f2 = NEW Fvarer
>  f3 = NEW Ffakturalist(Fakturalist)
>  f4 = NEW Ffaktura
>  f5 = NEW Fproject
>  f6 = NEW Ffakturalist
>   ' We are going to handle all tool form events here
>  Object.Attach(f4, ME, "f4")
>
>   MyArea.Add(f1)
>   MyArea.Add(f2)
>   MyArea.Add(f4)
>   MyArea.Add(f5)
>   MyArea.Add(f6)
>
> Started the program in 2005 and it's my billing program so it's used
> everyday. Until I upgraded to karmic when it was released.
> So If do disable the me.width = desktop.width everything work as it should
> again. With the version that are in the package manager, 2.13
>
> So maybe this is of somehelp for others or for benoit if it is a bug or
>  not.
>
>
>
>
>
> -----
> Regards R. Stormo
>
>
> My Gambas Community http://gambasforum.tk
>

Can you provide a full project that crashes on Ubuntu 9.10, and/or behaves
strangely? Otherwise, I can't debug.

Regards,

--
Benoît Minisini

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
Here is a program and it do hang when you enable me.width in form1

crash-test-0.0.1.tar.gz
Regards R. Stormo


My Gambas Community http://gambasforum.tk

Re: Karmic sqlite problem.

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
> Here is a program and it do hang when you enable me.width in form1
>
> http://old.nabble.com/file/p26203186/crash-test-0.0.1.tar.gz
> crash-test-0.0.1.tar.gz
>
>
> -----
> Regards R. Stormo
>
>
> My Gambas Community http://gambasforum.tk
>

Your program is an endless loop into Form_Resize.

Your form is inside a HBox. So changing the Width triggers a deffered Resize
event. But as the HBox resizes the form later, the Width changed again to its
initial value, and all the process starts again forever!

Changing the size of the form inside its Resize event is a bad idea. What did
you try to achieve?

--
Benoît Minisini

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Karmic sqlite problem.

by R. Stormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Benoît Minisini wrote:
>
> Here is a program and it do hang when you enable me.width in form1
>
> http://old.nabble.com/file/p26203186/crash-test-0.0.1.tar.gz
> crash-test-0.0.1.tar.gz
>
>
> -----
> Regards R. Stormo
>
>
> My Gambas Community http://gambasforum.tk
>

Your program is an endless loop into Form_Resize.

Your form is inside a HBox. So changing the Width triggers a deffered Resize
event. But as the HBox resizes the form later, the Width changed again to its
initial value, and all the process starts again forever!

Changing the size of the form inside its Resize event is a bad idea. What did
you try to achieve?

--
Benoît Minisini

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
It has worked for a couple of years.  strange that it just arrived then.
You say it's a endless loop.?

 f1 = NEW Form1(HBox1)
 f2 = NEW Form2
 f3 = NEW Form1

Isn't F1 a new instance of the form also f3 , then it should not be a problem to resize it twice.

The reason for the hbox is to show my customers unpayed bills every where, but also show it as
tabbed as well.

If I disable f1 as well it still hangs, then there is only one that use the form1.
Regards R. Stormo


My Gambas Community http://gambasforum.tk

Re: Karmic sqlite problem.

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Benoît Minisini wrote:
> >> Here is a program and it do hang when you enable me.width in form1
> >>
> >> http://old.nabble.com/file/p26203186/crash-test-0.0.1.tar.gz
> >> crash-test-0.0.1.tar.gz
> >>
> >>
> >> -----
> >> Regards R. Stormo
> >>
> >>
> >> My Gambas Community http://gambasforum.tk
> >
> > Your program is an endless loop into Form_Resize.
> >
> > Your form is inside a HBox. So changing the Width triggers a deffered
> > Resize
> > event. But as the HBox resizes the form later, the Width changed again to
> > its
> > initial value, and all the process starts again forever!
> >
> > Changing the size of the form inside its Resize event is a bad idea. What
> > did
> > you try to achieve?
>
> It has worked for a couple of years.  strange that it just arrived then.
> You say it's a endless loop.?
>
>  f1 = NEW Form1(HBox1)
>  f2 = NEW Form2
>  f3 = NEW Form1
>
> Isn't F1 a new instance of the form also f3 , then it should not be a
> problem to resize it twice.
>

Resizing a form inside its resize event is *always* a bug in the design of
your application.

Setting the width property of a form won't raise a Resize event only if the
new width is the same as the old width.

> The reason for the hbox is to show my customers unpayed bills every where,
> but also show it as
> tabbed as well.
>
> If I disable f1 as well it still hangs, then there is only one that use the
> form1.

So you replace two possibilities of and endless loop by only one. But you
still have one.

Regards,

--
Benoît Minisini

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user
< Prev | 1 - 2 | Next >