f



C++ assertion "wxAssertFailure" failed

[[ This message was both posted and mailed: see
   the 'To' and 'Newsgroups' headers for details. ]]

Hello,

I'm trying to run Faces (a project management application implemented in 
Python using wxPython for the GUI, see http://faces.homeip.net/) on my Mac 
(G5 with Mac OS X 10.4.6), but so far it won't work.

Here's the traceback I get:

"/Library/Frameworks/Python.framework/Versions/2.4/bin/python" -O  
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/faces/bin/faces.py"  && echo Exit status: $? && exit 1
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/faces/bin/faces.py", line 5, in ?
    sys.exit(main())
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/faces/gui/plangui.py", line 1181, in main
    app = FacesApp(False)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/metapie/gui/controller.py", line 1136, in __init__
    wx.App.__init__(self, *args, **kwargs)
  File 
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/wx-2.6-mac-unicode/wx/_core.py", line 7700, in __init__
    self._BootstrapApp()
  File 
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/wx-2.6-mac-unicode/wx/_core.py", line 7352, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/faces/gui/plangui.py", line 1089, in OnInit
    self.show_splash(True)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/faces/gui/plangui.py", line 1098, in show_splash
    text = RenderToBitmap(splash_text)
  File 
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/wx-2.6-mac-unicode/wx/lib/fancytext.py", line 353, in RenderToBitmap
    width, height, dy = GetFullExtent(str, dc, enclose)
  File 
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/wx-2.6-mac-unicode/wx/lib/fancytext.py", line 346, in GetFullExtent
    RenderToRenderer(str, renderer, enclose)
  File 
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/wx-2.6-mac-unicode/wx/lib/fancytext.py", line 329, in 
RenderToRenderer
    p.Parse(str, 1)
  File 
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/wx-2.6-mac-unicode/wx/lib/fancytext.py", line 137, in characterData
    self.y = self.mayY = self.maxY + self.dc.GetTextExtent("M")[1]
  File 
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/wx-2.6-mac-unicode/wx/_gdi.py", line 3435, in GetTextExtent
    return _gdi_.DC_GetTextExtent(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in 
/Users/kevino/oss/wx26/wxWidgets/src/mac/carbon/dc.cpp(1482): Invalid DC

Here is what I did:

- Installed Python from 
http://pythonmac.org/packages/py24-fat/dmg/Universal-MacPython-2.4.3-2006-04-
07.dmg
- Installed Numeric from 
http://prdownloads.sourceforge.net/numpy/Numeric-24.2.tar.gz?download
- Installed Matplotlib from 
http://pythonmac.org/packages/py24-fat/mpkg/matplotlib-0.87.2-py2.4-
macosx10.4.mpkg.zip
- Installed wxPython from 
http://pythonmac.org/packages/py24-fat/dmg/wxPython2.6-osx-unicode-2.6.3.2rc2-
universal10.4-py2.4.dmg
- Installed Cheetah from 
http://prdownloads.sourceforge.net/cheetahtemplate/Cheetah-
1.0.tar.gz?download
- Installed Faces from 
http://prdownloads.sourceforge.net/faces-project/faces-pm-
0.8.2.tar.gz?download
- Renamed bin/faces to faces.py and opened it with PythonLauncher.app

BTW: The wxpython and matplotlib demos work fine.

What did I wrong?

TIA for any help,

Sincerely,

Wolfgang Keller

0
Wolfgang
5/17/2006 7:45:08 PM
comp.soft-sys.wxwindows 21076 articles. 0 followers. Post Follow

3 Replies
1938 Views

Similar Articles

[PageSpeed] 39

Wolfgang Keller wrote:
> [[ This message was both posted and mailed: see
>    the 'To' and 'Newsgroups' headers for details. ]]
> 
> Hello,
> 
> I'm trying to run Faces (a project management application implemented in 
> Python using wxPython for the GUI, see http://faces.homeip.net/) on my Mac 
> (G5 with Mac OS X 10.4.6), but so far it won't work.
> 
> Here's the traceback I get:
> 
> "/Library/Frameworks/Python.framework/Versions/2.4/bin/python" -O  
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/faces/bin/faces.py"  && echo Exit status: $? && exit 1
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/faces/bin/faces.py", line 5, in ?
>     sys.exit(main())
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/faces/gui/plangui.py", line 1181, in main
>     app = FacesApp(False)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/metapie/gui/controller.py", line 1136, in __init__
>     wx.App.__init__(self, *args, **kwargs)
>   File 
> "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/wx-2.6-mac-unicode/wx/_core.py", line 7700, in __init__
>     self._BootstrapApp()
>   File 
> "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/wx-2.6-mac-unicode/wx/_core.py", line 7352, in _BootstrapApp
>     return _core_.PyApp__BootstrapApp(*args, **kwargs)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/faces/gui/plangui.py", line 1089, in OnInit
>     self.show_splash(True)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/faces/gui/plangui.py", line 1098, in show_splash
>     text = RenderToBitmap(splash_text)
>   File 
> "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/wx-2.6-mac-unicode/wx/lib/fancytext.py", line 353, in RenderToBitmap
>     width, height, dy = GetFullExtent(str, dc, enclose)
>   File 
> "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/wx-2.6-mac-unicode/wx/lib/fancytext.py", line 346, in GetFullExtent
>     RenderToRenderer(str, renderer, enclose)
>   File 
> "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/wx-2.6-mac-unicode/wx/lib/fancytext.py", line 329, in 
> RenderToRenderer
>     p.Parse(str, 1)
>   File 
> "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/wx-2.6-mac-unicode/wx/lib/fancytext.py", line 137, in characterData
>     self.y = self.mayY = self.maxY + self.dc.GetTextExtent("M")[1]
>   File 
> "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/wx-2.6-mac-unicode/wx/_gdi.py", line 3435, in GetTextExtent
>     return _gdi_.DC_GetTextExtent(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in 
> /Users/kevino/oss/wx26/wxWidgets/src/mac/carbon/dc.cpp(1482): Invalid DC

The Faces code uses the fancytext module in a way that exposes a bug. 
I'll make a fix for fancytext, but in the meantime you can probably just 
comment out the call to show_splash in the Faces code and it will 
probably work fine.  It just won't show the splash screen at startup.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org

0
robin
5/18/2006 11:38:16 PM
Hello.

and thanks for your reply.

> The Faces code uses the fancytext module in a way that exposes a bug. 
> I'll make a fix for fancytext, but in the meantime you can probably just 
> comment out the call to show_splash in the Faces code 

Done.

> and it will probably work fine.

Not yet. :-(

Here comes the next traceback:

Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/faces/gui/plangui.py", line 1246, in ?
    sys.exit(main())
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/faces/gui/plangui.py", line 1217, in main
    app.add_model(app.session)
  File 
"/Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/site-
packages/metapie/gui/controller.py", line 814, in add_model
    new_model.register()
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/faces/gui/plangui.py", line 890, in register
    session.Session.register(self)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/metapie/gui/session.py", line 193, in register
    controller().register_view(\
  File 
"/Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/site-
packages/metapie/gui/controller.py", line 961, in register_view
    active=False)
  File 
"/Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/site-
packages/metapie/gui/menupanel.py", line 292, in insert_content
    content.insert(title, id, bitmap, pos)
  File 
"/Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/site-
packages/metapie/gui/menupanel.py", line 187, in insert
    sizer.Insert(pos, button, 0, flag=wx.EXPAND)
  File 
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/wx-2.6-mac-unicode/wx/_core.py", line 11721, in Insert
    return _core_.Sizer_Insert(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in 
/Users/kevino/oss/wx26/wxWidgets/src/common/list.cpp(326): invalid index in 
wxListBase::Item

Sincerely,

Wolfgang Keller

0
Wolfgang
5/19/2006 6:21:45 PM
Wolfgang Keller wrote:
> Hello.
> 
> and thanks for your reply.
> 
>> The Faces code uses the fancytext module in a way that exposes a bug. 
>> I'll make a fix for fancytext, but in the meantime you can probably just 
>> comment out the call to show_splash in the Faces code 
> 
> Done.
> 
>> and it will probably work fine.
> 
> Not yet. :-(
> 
> Here comes the next traceback:

> "/Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/site-
> packages/metapie/gui/menupanel.py", line 187, in insert
>     sizer.Insert(pos, button, 0, flag=wx.EXPAND)
>   File 
> "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages/wx-2.6-mac-unicode/wx/_core.py", line 11721, in Insert
>     return _core_.Sizer_Insert(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in 
> /Users/kevino/oss/wx26/wxWidgets/src/common/list.cpp(326): invalid index in 
> wxListBase::Item

Looks like they are trying to insert an item into a sizer at a position 
that is larger than the number of items already in the sizer.  Please 
take this up with the Faces developers as it's their bug.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org

0
robin
5/19/2006 7:27:23 PM
Reply:

Similar Artilces:

["a", "b", "c", "d"] to "a, b, c, d"?
I want to process each element of an array, but the last element should be handled special. Here is an example: def p_ary(ary) str = "" ary.each do |elem| str << elem << ", " end str.chomp!(", ") str end so p_ary(["a", "f", "x", "test"]) produces "a, f, x, test". The code works, but isn't there an easier and more general way for this behaviour? martinus On Tue, 06 Apr 2004 04:23:22 -0700, Martin wrote: > I want to process each element of an array, but the last ele...

What does "Standard C", "K&R C" , "ANSI C" mean?
I am just wondering what the following terms usually mean: 1) "Standard C" 2) "K&R C" 3) "ANSI C" I am pretty sure "ANSI C" usually refers to the C89 standard, but what about the other two? What is the "saying" for C99 standard? Thank you On 17 Jan 2005 21:26:42 -0800, "Luke Wu" <LookSkywalker@gmail.com> wrote in comp.lang.c: > I am just wondering what the following terms usually mean: > > 1) "Standard C" The current version of the C language standard. This is now known as "ISO/IEC 9899:19...

why "::", not "."
Why does the method of modules use a dot, and the constants a double colon? e.g. Math::PI and Math.cos -- Posted via http://www.ruby-forum.com/. On Oct 26, 2010, at 01:48 , Oleg Igor wrote: > Why does the method of modules use a dot, and the constants a double > colon? > e.g. > Math::PI and Math.cos For the same reason why inner-classes/modules use double colon, because = they're constants and that's how you look up via constant namespace. Math::PI and ActiveRecord::Base are the same type of lookup... it is = just that Base is a module and PI is a float....

about "++" and "--"
why this program snippet display "8,7,7,8,-7,-8" the program is: main() { int i=8; printf("%d\n%d\n%d\n%d\n%d\n%d\n",++i,--i,i++,i--,-i++,-i--); } > why this program snippet display "8,7,7,8,-7,-8" Ask your compiler-vendor because this result is IMHO implementation-defined. Check this out: http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.15 http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.16 Regards, Irina Marudina fxc123@gmail.com wrote: > why this program snippet display "8,7,7,8,-7,-8&q...

"out" and "in out"
Hi i found the following explaination: In Ada, "in" parameters are similar to C++ const parameters. They are effectively read-only within the scope of the called subprogram. Ada "in out" parameters have a reliable initial value (that passed in from the calling subprogram) and may be modified within the scope of the called procedure. Ada "out" parameters have no reliable initial value, but are expected to be assigned a value within the called procedure. What does "have no reliable initial value" mean when considering the "out" parameter? By c...

"/ as sysdba" Failes But "sys/password@service_name" Works ???
I'm trying to connect to a remote Oracle database from a Unix box. Unix : AIX 4.3.3. Oracle: 8.1.7 $> sqlplus sys/syspassword@my_db_name Connected. perfectly works but, the following commands generate ORA-12545: error, any idea why ? : $> export ORACLE_SID=my_db_name $> sqlplus "/ as sysdba" ERROR: ORA-12545: Connect failed because target host or object does not exist i.d. > $> export ORACLE_SID=my_db_name > $> sqlplus "/ as sysdba" > ERROR: > ORA-12545: Connect failed because target host or object does not exist Is the database you are trying to connect to a remote database? If so, then you won't be able to connect this way. You'll have to connect the first way you indicated. HTH, Brian -- =================================================================== Brian Peasland dba@remove_spam.peasland.com Remove the "remove_spam." from the email address to email me. "I can give it to you cheap, quick, and good. Now pick two out of the three" idogan_tech@yahoo.com (Ibrahim DOGAN) wrote in message news:<6bf58828.0402251154.bfd587b@posting.google.com>... > I'm trying to connect to a remote Oracle database from a Unix box. > > Unix : AIX 4.3.3. > Oracle: 8.1.7 > > $> sqlplus sys/syspassword@my_db_name > Connected. > > perfectly works > > but, the following commands generate ORA-12545: error, any idea why ? : > > $> export ORACLE_...

Urgent need """""""""""INFORMATICA DEVELOPER"""""""""""""
Hello Partners, How are you ? Please find the requirements below. Title: Database/ETL Developer Duration: 6 months Location: NY Exp: 7+ Locals preferred Database/ETL requirements (Mandatory) Candidate must have worked with financial instruments, preferably Mutual Funds but, Equities are also ok. PL/SQL - packages, Stored procs, Functions, Aggregate functions, Pipelined Functions Informatica 8.6 - especially complex mappings, complex maplets, complex workflows, transformations Oracle 10g/11g Unix/Linux shell scripting Database/ETL requirements (Optional) Data warehousing experience Threading and job concepts in 10g/11g Cost based Optimizer concepts in 10g/11g Must : Experience with XML files and partitioning concepts in Oracle, Collections, Material Views Note : No phone calls please. : send Resumes to karthik@bhaninfo.com Thanks & Regards Karthik BhanInfo karthik@bhaninfo.com ...

Sometimes "ls" works while "ls -v" fails; Sometimes "ls -v" works while "ls" fails; Sometimes both fail; Why???
Hi all, I am trying to port linux kernel 2.4.20 to a new powerpc Book E processor/chip. I used the 16550A UART driver (in drivers/char/serial.c) with IRQ = 0 (no interrupt). I have tried to use different values for rs_strobe_time and the kernel prints out messages correctly. My problem is that when I tried to do "ls" or "export" in user mode, sometimes strange characters (or incorrect content) print out. Anyone has any idea? I have been struggling with this problem for over 2 months. Here is the screen dump. This one showing a case where "ls -l" ...

"In" "Out" and "Trash"
I just bought a new computer and I re-installed Eudora Light on my new computer. But when I open Eudora, the "In", "Out" and "Trash" links are not on the left side of the screen the way they were on my old computer. How can I get these links back on the left side of the screen? Thank you. On 25 Mar 2007 09:49:22 -0700, "abx" <abfunex@yahoo.com> wrote: >I just bought a new computer and I re-installed Eudora Light on my new >computer. But when I open Eudora, the "In", "Out" and "Trash" links >are ...

dolby "B", "C"
I've got some old cassettes with unique and original recordings that I'de like to move onto computer. They were recorded with Dolby B. Some were recorded with dolby C. I'de like to transfer the tapes to computer and then "decode" the dolby on the wav files after. My understanding is that since dolby is an analog system, it should be simple to emulate it. I already have a feeling that an expander and a low pass filter (whose strength would follow the loudness contour of the audio) might be the way to go. Any thoughts? Just curious, why do you want to do it this w...

Urgent JAVA Requirement in """"""NEW YORK"""""""""
Hello Partners, How are you ? Please find the requirement below. Location : NY Duration : 8 mnths Rate :Open Job description: Java/J2EE Web Service Developer =B7 (4+ years of application development experience in Java/J2EE and Web service technologies. =B7 Experience with spring & Hibernate. =B7 Experience with J2EE Application Server (preferably Web logic). =B7 Preferable Aqua logic DSP Experience =B7 Preferable Sonic ESB Composite Service experience Experience working in UNIX environment. Good working knowledge of Oracle RDBMS and PL/SQL) Note : Please send your updated resume along with contact no to Karthik@bhaninfo.com. Thanks & Regards Karthik BhanInfo karthik@bhaninfo.com # 1572, 7 th Floor Suites, 1 Blue Hill Plaza Pearl River,NY-10965 www.bhaninfo.com ...

Question about "sprintf" "@" "do for"
Hello, this works: A1=3D1 A2=3D2 A3=3D3 i=3D1 vari=3Dsprintf("A%.f",i) print vari,"=3D",@vari i=3Di+1 vari=3Dsprintf("A%.f",i) print vari,"=3D",@vari i=3Di+1 vari=3Dsprintf("A%.f",i) print vari,"=3D",@vari do for [i=3D1:3]{ vari=3Dsprintf("A%.f",i) print vari } But I want to have "print vari,"=3D",@vari" in the loop. But it dosen't=20 work. Why can't I use "print vari,"=3D",@vari" in the loop? Is there a=20 solution for? J=C3=B6rg Jörg ...

Gary Sokolich """"""
"""""""""" http://www.manta.com/c/mmlq5dm/w-gary-sokolich W Gary Sokolich 801 Kings Road Newport Beach, CA 92663-5715 (949) 650-5379 http://www.tbpe.state.tx.us/da/da022808.htm TEXAS BOARD OF PROFESSIONAL ENGINEERS February 28, 2008 Board Meeting Disciplinary Actions W. Gary Sokolich , Newport Beach, California �V File B-29812 - It was alleged that Dr. Sokolich unlawfully offered or attempted to practice engineering in Texas (...) Dr. Sokolich chose to end the proceedings by signing a Consent Order that was accepted by ...

puts "\\".gsub("\\", "\\\\")
Hello, I have a mini-ruby quiz. Guess what this line of code writes to the console, then try it for yourself: puts "\\".gsub("\\", "\\\\") Why is that so? Martin From: martinus [mailto:martin.ankerl@gmail.com]=20 # Hello, I have a mini-ruby quiz. Guess what this line of code writes to # the console, then try it for yourself: # puts "\\".gsub("\\", "\\\\") puts "\\".gsub("\\", "\\\\") \ #=3D> nil # Why is that so? faq. escaping the escape in sub/gsub. search the archives. maybe you want somethin...

how make /%([0-f]{2})/ -> sprintf( "%c", "\x" "\\1" ) problem : var = "\x27" # work var = 27 ; var = "\x" var ; # doesnt work, for sprintf %c
.... On 27.10.2014 18:32, {xmb} wrote: > ... > What a stupid question! Read http://www.catb.org/esr/faqs/smart-questions.html and Learn or Leave thank you _not_ for your useless text. if u want to help do so, u didnt. On Tue, 28 Oct 2014 07:42:00 -0700, {xmb} wrote: > thank you _not_ for your useless text. if u want to help do so, u didnt. Your question was unintelligible. The people in this group are very willing to help, in my experience. Your question just did not show the proper attitude or mental state to justify spending time answering. ...

"=>" fails to quote
=> fails to quote some bare identifiers to the left of it - is this a known "feature"? test program: #! /usr/bin/perl -w %server = ('66.185.33.35'=>ascend06) ; for $key (keys %server) { print "<$key>\t<$server{$key}>\n" ; } %server = (66.185.33.35=>ascend06) ; for $key (keys %server) { print "<$key>\t<$server{$key}>\n" ; } %server = ( "66.185.33.35"=>ascend06) ; for $key (keys %server) { print "<$key>\t<$server{$key}>\n" ; } output: <66.185.33.35> <ascend06> &l...

"==" is NOT TRUE "==", WHY?
[CODE START] x=5; y=8; if (x + y + 1E-15 == 13) a = 3 else a = 8 end [CODE END] When x + y + 1E-15, the code above returns a = 8. When x + y + 1E-16, the code above returns a = 3. Why? Kindly advise. Thanks. "onemilimeter Chen" <onemm@example.com> wrote in message <g7adrj$5tr$1@fred.mathworks.com>... > [CODE START] > x=5; > y=8; > if (x + y + 1E-15 == 13) > a = 3 > else > a = 8 > end > [CODE END] > > When x + y + 1E-15, the code above returns a = 8. > When x + y + 1E-16, the code above returns a = 3. > > Why? ...

want a "here doc" equivalent in "c"
I want to embed a bash script inside the c program. How could you do the below bash snippet in "c"?: cat > /tmp/foo <<\__EOD_ all kinds of nasty stuff in here including single and double quotes and bashslashes .. (note that the here doc delimiter is preceded by a "\" __EOD_ -- regards, Tom Rodman pls run for my address: perl -e 'print unpack("u", "1\:6UP\,\$\!T\<F\]D\;6\%N\+F\-O\;0H\`");' On Wed, 03 Sep 2003 15:14:28 -0500 Tom Rodman <Use-Author-Address-Header@[127.1]> wrote: > I want to embed a bash script in...

C extension: "malloc" and "rb_raise"
Hi, if I use "malloc" in a Ruby C function and then call to "rb_raise" (so = the=20 program exists), will the allocated memory be released? (if not I get a mem= ory=20 leak). Perhaps Ruby havs a garbage collector for C? Thanks. =2D-=20 I=C3=B1aki Baz Castillo <ibc@aliax.net> Hi, In message "Re: C extension: "malloc" and "rb_raise"" on Sat, 24 Oct 2009 08:43:32 +0900, I=F1aki Baz Castillo <ibc@aliax.net= > writes: |Hi, if I use "malloc" in a Ruby C function and then call to "rb_raise" (so= the=20 |progr...

"A" is not equal "A"?
I was trying to convert String Array to String A through cycle and than compare the result with String B but eventhough results were the same it returned false. I'am working in BlueJ 3.1.0 Code is: public boolean Method () { String[] Example = {"a","b","c"}; String A = ""; String B = "abc" for (int i = 0; i<3 ; i++) { A = A + Example[i]; } if (A == B) { return true; } } never got true... I appreciate any suggestions how to solve this Den 08.04.2014 10:06, skrev 245dav@gmail.com:...

what does the "+" and the "-" mean?
I recently read what the "+" and the "-" signs mean for compact discs. Of course, a friend has just asked me and I now forget. I've searched all over the place with no results. Anyone know? TIA! .. -------------------------------------- Mike Richter, were you born with "Scam Artist" emblazoned on your face? -------------------------------------- roscoe james wrote: > > I recently read what the "+" and the "-" signs mean for compact discs. Of > course, a friend h...

"unnamed", "anonymous" array in C++
Hi, look at this: //////////////////////////// #include <iostream> using namespace std; template<size_t len> void print(const char * const(&arr_str)[len]) { for (size_t i = 0; i < len; ++i) { cout << arr_str[i] << '\n'; } } int main() { const char word1[] = "C++"; const char word2[] = "is"; const char word3[] = "great"; print((const char* const []){word1, word2, word3}); return 0; } //////////////////////////////////////////////// (It's 100% legal in C++, right?) Could it be written in a more idiomatic way, or is it already ok? Thanks. J. Ah one alternative (if one really wants to), would be to use std::array ////////////////////////////// // c++11/14/17 #include <iostream> #include <array> using namespace std; template<size_t N> void print(const array<const char* const, N> &arr) { for (size_t i = 0; i < N; ++i) { cout << arr[i] << '\n'; } } int main() { const char word1[] = "C++"; const char word2[] = "is"; const char word3[] = "great"; print(array<const char* const, 3>{{word1, word2, word3}}); return 0; } ///////////////////////////////////// jononanon@googlemail.com writes: >print((const char* const []){word1, word2, word3}); Compound literals are not part of C++ IIRC. >Could it b...

how to change "/" to "\"
iam new to shell scripting and i have plz can anyone help in changing the pattrern "/" to "\" using the sed command. olympie@gmail.com wrote: > iam new to shell scripting and i have plz can anyone help in changing > the pattrern "/" to "\" using the sed command. sed 's/\//\\/g' will replace all '/' with '\' srp -- http://saju.net.in Saju Pillai <saju.pillai@gmail.com> wrote: >> iam new to shell scripting and i have plz can anyone help in changing >> the pattrern "/" to "\" using ...

Re: "out" and "in out"
"no reliable initial value" means, you cannot rely on the value, but it may have a value. This depends on the parameter passing mechanism, which is _not_ related to the parameter mode (contrary to what many people think). So the parameter mode is there (nearly) solely for the information of the reader. The parameter passing mechanism for all kinds of parameters is defined in the RM. There are parameters passed by copy (in and out), by reference; for some it is explicitly left undefined. In your case, the passing mechanism is by reference, so you get what you get. But don't rely...

Web resources about - C++ assertion "wxAssertFailure" failed - comp.soft-sys.wxwindows

Resources last updated: 3/21/2016 1:44:08 AM