1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

TUniAlerter - Postgres (Help)

Discussion in 'Delphi Help&Requests' started by c.gaio, Sep 18, 2015.

  1. c.gaio
    Offline

    c.gaio DF Member

    Hello.
    I'm trying to migrate application from Delphi 2007 to Delphi XE2, but I'm having trouble with TUniAlerter.
    My application uses a channel listening in Postgres.
    example:


    Code:
    procedure TForm1.btn1Click(Sender: TObject);
    begin
    ultr1.Stop;
    ultr1.Events := 'MyChannel';
    ultr1.Start;
    end;
    
    procedure TForm1.ultr1Event(Sender: TDAAlerter; const EventName, Message: WideString);
    begin
    ShowMessage(Message);
    end;
    
    This code works fine in Delphi 2007, but when I run the application in Delphi XE2 ultr1Event the event does not occur.
    I believe it is because of the changing strings in XE2, but already tried every string conversions and yet still not working.
    Data Base information:
    PostgreSQL version 9.2.9
    charset LATIN1
    information UniDac
    Version 4.5.10 Delphi 2007 and Delphi XE2

    Already tried to set the charset in tuniconnection up and operate the UseUnicode option to True, but even asim did not succeed.

    Could someone help me in this case.
    Thank you.
    Cristiano Gaio

     
     
  2. randydom
    Offline

    randydom DF Member

    Why not setting a breakpoint and see if it's invoked at all ?
     
  3. c.gaio
    Offline

    c.gaio DF Member

    RE:

    But after many test, I could identify that another developer put the databasename in tuniconnection with lowercase so the events were not invoked.
    As we migrated the entire system modification the basis of names in order to standardize them.
    Thank you all
     

Share This Page