From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,dea3b09c039d0609 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Error converting from UTF8 to ISO-8859-1 Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4a70669a$0$13417$703f8584@news.kpn.nl> Date: Wed, 29 Jul 2009 17:55:33 +0200 Message-ID: <8isqph858n0s$.krle17w7i2z1$.dlg@40tude.net> NNTP-Posting-Date: 29 Jul 2009 17:55:31 CEST NNTP-Posting-Host: afac7de8.newsspool4.arcor-online.net X-Trace: DXC=W62DlVl@A5jPXlQ;h]GTMd4IUK On Wed, 29 Jul 2009 17:11:35 +0200, ldries46 wrote: > I suddenly got the error mentioned in the title. > I am trying to connect a "clicked" signal from a button in a dialog to a > routine that executes some function. The code I have so far for the > Initialize routine of the dialog is: > > procedure Initialize (Wall_Color : access Wall_Color_Record'Class) is > pragma Suppress (All_Checks); > Pixmaps_Dir : constant String := "pixmaps/"; > ColorSelection : Gtk_Color_Selection; > OK : Gtk_Button; > Cancel : Gtk_Button; > Help : Gtk_Button; > begin > Gtk.Color_Selection_Dialog.Initialize (Wall_Color, -"Wall Color"); > Set_Border_Width (Wall_Color, 5); > Set_Title (Wall_Color, -"Wall Color"); > Set_Position (Wall_Color, Win_Pos_None); > Set_Modal (Wall_Color, False); > Set_Resizable (Wall_Color, False); > ColorSelection := Get_ColorSel (Wall_Color ); > OK := Get_OK_Button (Wall_Color); > Cancel := Get_Cancel_Button (Wall_Color); > Help := Get_Help_Button (Wall_Color); > Set_Current_Color( ColorSelection, Current_Color ); > Button_CallBack.Connect(OK, "clicked", > On_WallFloorOK_Activate'Access); > end Initialize; > When I outcomment the line Button.Connect etc. the package with this > function compiles without errors. Once the line is also compiled I get the > error when opened always on the lines 37:0, 38:0 and 39:0 with the > descriprion Invalid byte sequence in conversion input. In this case these > lines are: > Help : Gtk_Button; > begin > Gtk.Color_Selection_Dialog.Initialize (Wall_Color, -"Wall Color"); > but when I add multiple lines comments or code for instance on line 20 etc. > the line nr's of the error stay the same 37, 38 and 39. > I now cannot search further to solve my connect problem. You should post a complete code. Also never suppress checks, at least until production code. P.S. I remotely remember that in some version of GtkAda the color selection dialog didn't work, but I might be wrong. You could consider switching to Gtk_Color_Selection. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de