Discussion:
Another newbie question
Roland Voegtli
2008-01-10 10:53:37 UTC
Permalink
G'day. It's me again...

I just tried to do something as simple as following the suggestions on
page 38 of the manual
and to implement a connect button. I followed the steps closely,
subclassing the button,
implementing the interface, adding the socket property and the action
code - but when compiling,
RB cannot find the connect property (?).

So, after the bindings won't do, this simple thing won't do either. I
am a bit at loss as
to what I can expect from the manual... I tried in 2007r3,r4 and r5.

any ideas?

cheers
®
Jason Moehlman
2008-01-10 18:47:28 UTC
Permalink
The console application code on page 88 provides a much better
example of simply connecting to the database and accessing it with
straight forward code. Once that works, you can tailor it to
whatever your application needs are.

Have you looked at that?

Jason
Post by Roland Voegtli
G'day. It's me again...
I just tried to do something as simple as following the suggestions on
page 38 of the manual
and to implement a connect button. I followed the steps closely,
subclassing the button,
implementing the interface, adding the socket property and the action
code - but when compiling,
RB cannot find the connect property (?).
So, after the bindings won't do, this simple thing won't do either. I
am a bit at loss as
to what I can expect from the manual... I tried in 2007r3,r4 and r5.
any ideas?
cheers
®
_______________________________________________
Postgresql mailing list
http://aliacta.com/mailman/listinfo/postgresql_aliacta.com
Roland Voegtli
2008-01-11 09:24:41 UTC
Permalink
Hi Jason.
Post by Jason Moehlman
The console application code on page 88 provides a much better
example of simply connecting to the database and accessing it with
straight forward code. Once that works, you can tailor it to
whatever your application needs are.
Nope. Didn't thought of trying the console example yet. Tried to follow
the GUI example only. Thanks for the hint. I'll have a look and
see if that fits my two brain cells better. :-)

cheers
®
Roland Voegtli
2008-01-11 10:35:35 UTC
Permalink
Hi again.

When I try to run the example file that comes with the download, I get
a nil object exception crash soon after the socket tries to connect.

(I use the same login data as I use in various other tools, and that
login
works fine when using the postgresql plugin.)

Now, whatever I do in my own tests, I always get that crash. I tried
building the console version with no frills, and get that crash in the
event loop. Tested in RB 2007 r3 - 5.

So far I have not been able to build anything that runs with the
classes.
Not the demo file nor any code that I tried to use from the manual and
examples. I will happily attach a demo file so someone can point my
nose to my own coding stupidity... but currently the only thing that
I have seen working with the aliacta classes is the compiled eduphant...

sorry for the pestering, but I really am stuck at the moment.

cheers
®
Jason Moehlman
2008-01-11 18:27:37 UTC
Permalink
Hello Roland,

Either send me off list the code your using, or post it and I am sure
we can work it out.

I have seen those types of issues when the query was being sent
before the connection was complete. It was my biggest problem moving
to v2. I will be happy to help if I can.

I will tell you that PG with PGSQL4RB is a great solution, that you
will not ever regret using once you get your feet wet. I have worked
with most of the DB solutions for RB, and while they all have their
plus and minus aspects, no other solution offers as much overall,
especially for more critical applications.

PostgreSQL is in a league of it's own, and from my experience
PGSQL4RB is the best way to use it with RB.

Jason
Post by Roland Voegtli
Hi again.
When I try to run the example file that comes with the download, I get
a nil object exception crash soon after the socket tries to connect.
(I use the same login data as I use in various other tools, and that
login
works fine when using the postgresql plugin.)
Now, whatever I do in my own tests, I always get that crash. I tried
building the console version with no frills, and get that crash in the
event loop. Tested in RB 2007 r3 - 5.
So far I have not been able to build anything that runs with the
classes.
Not the demo file nor any code that I tried to use from the manual and
examples. I will happily attach a demo file so someone can point my
nose to my own coding stupidity... but currently the only thing that
I have seen working with the aliacta classes is the compiled
eduphant...
sorry for the pestering, but I really am stuck at the moment.
cheers
®
_______________________________________________
Postgresql mailing list
http://aliacta.com/mailman/listinfo/postgresql_aliacta.com
Aliacta Support
2008-01-21 18:52:22 UTC
Permalink
Unfortunately it turns out there's no internet connectivity over the
cellphone where I am now so I'll be totally unavailable for the next
2 to 3 weeks, except perhaps for the occasional visit to a cybercafe,
if I stumble upon any.

Cheers,

Marc

Loading...