Thank you. All is working as expected.

About the datamodule.. good to know, it make things easier.

Cheers

Julio

2011/8/18 Martin Schreiber <mse00...@gmail.com>

> On Wednesday 17 August 2011 22:09:26 Julio Jiménez wrote:
> > Hi, I'm trying to use MSE for console applications using DB but my
> program
> > hangs when I create the connection.
> > There aren't exception fired nor error messages. I guess can't use
> > datamodules because are GUI dependant and I'm trying to build a server
> side
> > program where no X installed.
> >
> > May be I'm missing something.
> >
> Datamodules can be used without X, add msenogui to uses in the main
> program.
> An example is here:
>
> http://svn.berlios.de/viewvc/mseuniverse/attic/msedocumenting/mse/trunk/help/tutorials/nogui/timer/
>
> >
> > The code:
> >
> > program testdbcons;
> > {$ifdef FPC}{$mode objfpc}{$h+}{$endif}
> > {$ifdef mswindows}{$apptype console}{$endif}
> > uses
> >  {$ifdef FPC}{$ifdef linux}cthreads,cwstring,{$endif}{$endif}
> >  sysutils, mseibconnection, msesqldb
>
> ,msenogui
>
> >  ;
> >
> > var
> >  con : tmseibconnection;
> >  tr : tmsesqltransaction;
> > begin
>
>  application.initialize;
>
> >  con:= tmseibconnection.create(nil);  <<<<<----- program hangs here
> >  writeln('test');
> >  con.free;
> > end.
>
> tmseibconnection uses timer and other application services so
> application.initialize is necessary or place the connection component in a
> datamodule.
>
> Martin
> _______________________________________________
> MSEide-MSEgui-talk mailing list
> MSEide-MSEgui-talk@lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk
>
_______________________________________________
MSEide-MSEgui-talk mailing list
MSEide-MSEgui-talk@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk

Reply via email to