Tuesday, February 3, 2015

Digest for comp.lang.c++@googlegroups.com - 18 updates in 7 topics

Robert Wessel <robertwessel2@yahoo.com>: Feb 02 07:04PM -0600


>> The idea of Java replacing ADA does lead to considerable
>> amusement, given the real-time nature of much ADA code.
 
>Java has extremely good JIT compiler (written in C++).
 
 
How does that help in the slightest with performing real-time work in
Java?
Melzzzzz <mel@zzzzz.com>: Feb 03 02:20AM +0100

On Mon, 02 Feb 2015 19:04:32 -0600
 
> >Java has extremely good JIT compiler (written in C++).
 
> How does that help in the slightest with performing real-time work in
> Java?
 
It helps performance, so it helps real-time work, I guess. They know
what are they doing, I guess...
Nobody <nobody@nowhere.invalid>: Feb 03 11:45AM

On Mon, 02 Feb 2015 22:05:36 +0100, jacob navia wrote:
 
> Praxis:
 
> PixelOn(x,y,color);
 
> You can't do that?
 
Nope. The main problem is that it can't be implemented on anything which
isn't based upon a rectangular grid of pixels.
 
That includes most printers, where pixels overlap (i.e. the spacing
between adjacent pixel centres is smaller than the area which is affected
by changing the pixel's intensity).
 
It also has issues with rendering systems with sub-pixel granularity (e.g.
MSAA and direct control of the R/G/B sub-pixels).
 
Cairo's rendering model is essentially the same as all other "modern" 2D
graphics APIs (PostScript/PDF, OpenVG, SVG, HTML5 canvas, XRender, etc).
I.e. floating-point coordinates with an arbitrary affine transformation,
paths constructed from cubic Bezier curves, Porter-Duff compositing.
 
As opposed to the 90's-era standard (X11, BGI) which revolved around
direct manipulation of the pixel grid: integer pixel coordinates, no
transformations, lines, circles, polygons, axis-aligned rectangles, image
blit with translation and integer scaling (no rotation), compositing
limited to bitwise operations (AND, OR, XOR, etc), no alpha blending.
Lynn McGuire <lmc@winsim.com>: Feb 03 04:05PM -0600

On 2/2/2015 4:35 AM, Juha Nieminen wrote:
> third-party libraries that are unbound by the strict admission
> process of standardization. They can be upgraded at any time,
> and mistakes can be corrected rapidly.
 
I totally disagree. If https://www.wxwidgets.org/ was made a standard then all of the platform developers would at least attempt
to support it.
 
Lynn
"MICHELE RAGAZZI. ODEY GIANO." <ginobusciarello@outlook.com>: Feb 03 08:13AM -0800

PADRE E FIGLIO DI PUTTANA, PIERLUIGI BOSCHI DI AREZZO E BANCA ETRURIA, SU INPUT DI BATTONA BERLUSCONICCHIA MARIA ELENA BOSCHI, HA PASSATO INSIDER SU BANCHE POPOLARI A VERME DAVIDE SERRA DI ALGEBRIS E TWITTER ED HA BECCATO STECCA DI 1.000.000 EURO A?

STO BASTARDO NAZINDRANGHETISTA DI DAVIDE SERRA DI ALGEBRIS E TWITTER HA RICEVUTO L'INSIDER TRADING SULLE BANCHE POPOLARI DA NOTO LAVA SOLDI MAFIOSI PIER LUIGI BOSCHI DI AREZZO E BANCA ETRURIA. HA PURE RAGLIATO CHE COMPRA BANCHE POPOLARI DAL MARZO 2014. SPUTTANANDOSI ANCORA DI PIU', COME UN IMBECILLE, PEDERASTA SODOMIZZA BAMBINI E MEGA COCAINOMANE, QUALE DA SEMPRE E'. IL SUO POR-CO-RROTTISSIMO MATTEO RENZI (CHE VIA "SS", SPINTA E STECCHE DI SILVIO BERLUSCONI, HA SCIPPATO SEGRETERIA PD E PALAZZO CHIGI, NEL SECONDO CASO COL FEBBRAIO 2014), GLI HA PASSATO, ATTRAVERSO "A ZOCCOLONA BERLUSCONICCHIA, STECCATISSIMA E CELLULITOSA" MARIA ELENA BOSCHI http://www.dagospia.com/img/foto/08-2014/maria-elena-boschi-bikini-rosa-in-spiaggia-a-marina-di-pietrasanta-581617_tn.jpg E IL VERME MEGA LAVA SOLDI MAFIOSI PIER LUIGI BOSCHI DI BANCA ETRURIA, L'INSIDER SULLE BANCHE POPOLARI. E PER QUESTO, STO ESCREMENTO HITLERIANO DI DAVIDE SERRA DI TWITTER E ALGEBRIS, SI E' MESSO A COMPRARE BANCHE POPOLARI DAL MARZO 2014. UN MESE DOPO (ULLALA CHE COINCIDENZA, ULLALA). SEMPRE INSIDER E'. TRATTASI DI MANDRIA DI PORCI FASCIOCAMORRISTI, TIPO, ANCHE, NOTO AVANZO DI GALERA PAOLO BARRAI (DI CRIMINALISSIME WMO, BSI ITALIA SRL DI VIA SOCRATE 26 MILANO E BLOG "MERDATO"LIBERO), CHE SI FINGONO DEL PD, X... DISTRUGGERLO, INFILTRARLO A MORTE, RENDERLO DIARREA BERLUSCONICCHIA! VOGLIAMO UNA ACCESISSIMA E VINCENTISSIMA REVOLUCIOOOOOON! VOGLIAMO IL CANCROMICIDA DEL MONDO INTERO, SILVIO BERLUSCONI, FALLITO ED IN GALERA! SUBITO! PLS, DOTTOR SERGIO MATTARELLA, CI DIA UNA MANO. IN ONORE A SUO FRATELLO UCCISO DALLA MAFIA ( MAFIA CHE QUANDO SI METTE LA FASCISTISSIMA CRAVATTA DOLCE E GABBANA, SIGNIFICA SILVIO BERLUSCONI E DAVIDE SERRA). IN ONORE AD ETERNI GIOVANNI FALCONE E PAOLO BORSELLINO, FATTI SPAPPOLARE, SICURISSIMAMENTE, DA SILVIO BERLUSCONI, VIA, A SUA VOLTA, BERLUSCONIANISSIMA COSA NOSTRA! ED OLTRE A VOLER SILVIO BERLUSCONI FALLITO ED IN GALERA, VOGLIAMO VEDERE IL SUO PICCIOTTO INCRAVATTATO, IL FACCENDIERE DI BERLUSCONAZISTI, PADANAZISTI, E CRIMINALITA' ORGANIZZATE DI MEZZO MONDO, PAOLO BARRAI DI MALAVITOSA WMO, PURE, IN GALERA! VOGLIAMO IL NUOVO GIANCARLO LANDE, IL NUOVO BERNARD MADOFF, IL NUOVO MICHELE SINDONA, VERME CRIMINALISSIMO DAVIDE SERRA DI TWITTER ED ALGEBRIS, FALLITO, E PER LO MENO, PER QUALCHE MESE, IN GALERA! CHE SIA ETICISSSIMA E VINCENTISSIMA REVOLUCIOOOOON!
COME DA OTTIMO SITO INFORMARE X RESISTERE:
http://www.informarexresistere.fr/2015/01/27/qualcuno-sapeva-in-anticipo-che-il-governo-avrebbe-varato-un-provvedimento-sulle-banche-popolari-enormi-speculazioni/
COME DA CORRIERE DELLA SERA, DI, OTTIMAMENTE, ANTIRENZUSCONIANO FERRUCCIO DE BORTOLI, DA NON TOCCARE E A TUTTI I COSTI:
http://www.corriere.it/economia/15_gennaio_24/quei-movimenti-un-po-sospetti-popolari-f59ffb1c-a3a5-11e4-808e-442fa7f91611.shtml
Acquisti consistenti prima della riforma che ha abolito il voto capitario. La famiglia Boschi ha sicurissimamente passato insider trading a Londra, tramite noto ladro, truffatore, nazifascista, immensamente ricicla soldi mafiosi, che affatto va' in Tanzania a fare del bene, in quanto vi va' a riciclare cash di (sua) LL Lega Ladrona, come per suoi gusti sessuali di tipo depravatissimo: avanzo di galera Davide Serra di Algebris e Twitter. Dove prenderanno, le mazzette, ora, i vermi nazifascisti Pier Luigi Boschi di Banca Etruria e sua zoccolona ( di fatto) Berlusconicchia Maria Elena Boschi ( bastarda puttanazista che vuole sgozzare la giustizia via estremissimamente ingiusta salvaberlusconi http://www.blitzquotidiano.it/rassegna-stampa/libero-renzi-per-fare-la-pace-offre-la-salva-berlusconi-che-fara-mattarella-2090491/ .... che qui, non per niente, slingua un topo di fogna corrotto, ndranghetista, fascista, estortore di soldi alla Banca Popolare di Lodihttp://www.repubblica.it/2005/l/sezioni/economia/banche21/ipolitici/ipolitici.html .. pezzo di merda criminalissimo Paolo Romani
http://www.corriere.it/methode_image/2014/08/08/Politica/Foto%20Politica%20-%20Trattate/6ebdfe07bdd8cb1fe88af8343f8a5b1c-012-kXsC-U43030145012273wcB-593x443@Corriere-Web-Sezioni.jpg?v=20140808175213 )?
A) Alle Bahamas
B) Alle Bermuda
C) A Panama
D) Ad Hong Kong
E) A Singapore
F) Alle Mauritius ( "roba" tipo Svizzera e' da anni 70, 80: stile nazimafioso pedofilo Silvio Berlusconi e suo B-o-ttino Craxi, dai, please)
Lauti premi a chi azzecca per primo.
---
BRAVO, BRAVO, DAVVERO BRAVISSIMO ELIO LANNUTTI A QUERELARE STO VERME BERLUS-CORROTTTISSIMO DI MATTEO RENZI:
http://www.ilfattoquotidiano.it/2015/01/21/denuncia-per-renzi/1357263/
CHE SBEFFEGGIA PM PER BENE, EROICI, SALVA NAZIONE ( SPESSO FATTI ESPLODERE, COME IL NAZIMAFIOSO PEDOFILO STRAGISTA SILVIO BERLUSCONI FECE FARE CON GLI ETERNI GIOVANNI FALCONE E PAOLO BORSELLINO). TIPO QUELLI DI PALERMO, BARI, MILANO, NAPOLI, DICENDO, ANZI, RAGLIANDO LORO: "'OOOO OO CHE PAURA, MI FANNO, OO OO"
http://tv.ilfattoquotidiano.it/2014/09/10/renzi-anm-protesta-brrrrr-che-paura-sciopero-sindacati-polizia-illegale/295911/
CHE RABBIA MOSTRUOSISSIMA, QUESTO VERMINOSO, CRIMINALISSIMO TRAFFICARE FRA POR-CO-RRUTTORE MAXIMO SILVIO BERLUSCONI E POR-CO-RROTTO MAXIMO MATTEO RENZI!
https://ilgrandetsunami.wordpress.com/2015/01/17/berlusconi-che-ne-sara-di-me-il-2-febbraio-carmelo-lopapa/
"IO TI VOTO LE RIFORME (ODIOSISSIMAMENTE MAFIOSE E FASCISTE, OSSIA BERLUSCONIANISSIME) CHE STAI APPRONTANDO ( VEDI SENATORI NON ELETTI E CAPOLISTA BLOCCATI, COSA CHE ANCHE I VERMINOSI MATTEO RENZI E SILVIO BERLUSCONI DEGLI ULTIMI 8 DECENNI, OSSIA ADOLF HITLER, BENITO MUSSOLINI, ALFREDO STROESSNER, FRANCISCO FRANCO, EMILIO EDUARDO MASSERA, AUGUSTO PINOCHET E POL POT AVREBBERO SENTITO TANTISSIMO PUDORE AL SOL PROVARE A PENSARNE), TU METTI AL QUIRINALE UN FANTOCCIO DI MIA PROPRIETA' CHE COMPRO QUANDO VOGLIO QUALE GIULIANO AMATO, VALTER VELTRONI O ANNA FINOCCHIARO ... O MEGLIO ANCORA, SE PARLIAMO DI MIEI FASCIOBAMBOCCI ALLA PIERFERDINANDO CASINI O GIANNI LETTA... TUTTI MIEI PUPAZZI CHE MI HAN GIA' GARANTITO CHE CON SEI EURO E MEZZO CASH, MI FIRMEREBBERO TUTTE LE GRAZIE CHE VOGLIO IN NOME DELLA MIA.... PACIFICAZIONE ALLA VASELLINA... E ... SPECIALMENTE ...GIUSTO PER ANDARE SUL SICURO.... MI FAI ANCHE E SUBITO UNA NORMINA DECAPITANTE NOIOSISSIMI CONCETTI COME DEMOCRAZIA E GIUSTIZIA CHE IMPONGA IL MIO TORNARE IN POLITICA, COSI' CHE POSSA FOTTERE IL POPOLO CIUCCIO, LE LEGGI, DOZZINE DI (GRANDISSIMI) MAGISTRATI COME ILDA BOCASSINI, EDMONDO BRUTI LIBERATI, NINO DI MATTEO, ROBERTO SCARPINATO, FABIO DE PASQUALE, HENRY WOODCOCK, PASQUALE DRAGO, ATTRAVERSO LA ( BASTARDAMENTE VIGLIACCHISSIMA) IMMUNITA' EVITA GALERA, CHE MI RI RITROVEREI"!
http://www.ilfattoquotidiano.it/2015/01/18/salva-berlusconi-alessandro-pace-manina-renzi-reato-falso/1349562/
http://www.ilfattoquotidiano.it/2015/01/08/salva-berlusconi-mucchetti-renzi-venga-senato-spiegare-successo/1322595/
http://www.ilfattoquotidiano.it/2015/01/06/salva-berlusconi-coppi-ammette-quella-norma-segnale-per-quirinale/1318110/
ECCO DOVE CI PORTANO BASTARDI LAVA CASH MAFIOSO A GO GO COME I MALAVITOSINCRAVATTATI DAVIDE SERRA DI ALGEBRIS E TWITTER INSIEME AL RENATO VALLANZASCA UNITO AD UGO FANTOZZI DELLA FINANZA, NOTO AVANZO DI GALERA PAOLO BARRAI NATO A MILANO IL 28.6.1965, DI CRIMINALISSIMO WMO, CRIMINALISSIMA BSI ITALIA SRL DI VIA SOCRATE 26 MILANO E CRIMINALISSIMO BLOG MERCATO "MERDATO" LIBERO ( DUE VERMI REPELLENTI CHE RICICLANO ALL'ESTERO VAGONI DI SOLDI DI COSA NOSTRA, CAMORRA, NDRANGHETA O LADRATI SE NON PURE FRUTTO DI MEGA MAZZETTE IN DIREZIONE LL LEGA LADRONA ED EX PDL POPOLO DI LADRONI; IN CONGIUNZIONE CON BANCHIERI DELINQUENTISSIMI, SPESSO PURE MANDANTI DI OMICIDI O "SUICIDATE", COME FATTO CON DAVID ROSSI DI MONTE PASCHI, QUALI GLI ASSASSINI ENNIO DORIS E MASSIMO DORIS DI BANCA MEDIOLANUM; O QUALE "O MASSONE CAMORRISTA" GIUSEPPE SABATO DI BANCA ESPERIA
http://www.gruppoesperia.it/chi-siamo/giuseppe-sabato.html
https://books.google.it/books?id=B1mEj0GtktIC&pg=PT304&lpg=PT304&dq=GIUSEPPE+SABATO+LICIO+GELLI&source=bl&ots=Gqtu0KYRmD&sig=d2TOz9sZDY6563zIPxwnNYcbxb4&hl=it&sa=X&ei=I-i_VOOsBMLlUonCgZgI&ved=0CFMQ6AEwCA#v=onepage&q=GIUSEPPE%20SABATO%20LICIO%20GELLI&f=false
TUTTI DEL GRUPPO MA-F-INIVEST DI " STEFANO BONTATE, MARCELLO DELL'UTRI, TOTO RIINA, LICIO GELLI, BERNARDO PROVENZANO E SILVIO BERLUSCONI: " OO CHE CASO, OO")! E PROPRIO MENTRE VIENO ACCLARATO CHE STO VERME COLERICO E STECCATISSIMO DI MATTEO RENZI, COME INTUITO DA GENIO BORSISTICO ED EROE CIVILE MICHELE NISTA DA ANNI E NON "SOLO" 11 MESI, E' IN POLITICA, IN PRIMIS, PER PROTEGGERE IL TOPO DI FOGNA DI SUO PADRE, TIZIANO RENZI. ACCERTATO BANCAROTTIERE FRAUDOLENTISSIMO, ACCERTATO NEOPIDUISTA LADRONE E TRUFFATORE! CHE HA SODOMIZZATO UN MILIONE DI EURO A FIDI TOSCANA E LI HA FATTI PAGARE AL POPOLO CIUCCIO, VIA SUO BASTARDO NAZIMAFIOSO POR-CO-RROTTO DITTATORE MATTEO RENZI!
http://www.beppegrillo.it/2015/01/i_conflitti_dinteressi_della_famiglia_renzie.html
https://www.youtube.com/watch?v=A7Ngp6JrK9A
http://robertoiacobone.altervista.org/debiti-azienda-di-famiglia-renzi-pagati-dal-governo-renzi/?doing_wp_cron=1421500410.9769570827484130859375
VOGLIAMO A PALAZZO CHIGI STEFANO FASSINA SUBITO! INSIEME AL PD PER BENE, QUELLO ANTI MAFIA FASCISTA DI MATTEO RENZI! INSIEME, OVVIAMENTE, A M5S E SEL! A FARE IL SUO VERO LAVORO, OSSIA LA ZOCCOLA DI STRADA, STA BATTONA HITLERIANA, CHE SI CREDE MODELLA MA E' CESSO STRA COLMO DI CELLULITE, DI MARIA ELENA BOSCHI http://www.dagospia.com/img/foto/08-2014/maria-elena-boschi-bikini-rosa-in-spiaggia-a-marina-di-pietrasanta-581617_tn.jpg FIGLIA DI ALTRO VERME CRIMINALISSIMO: MEGA LAVA SOLDI MAFIOSI PIER LUIGI BOSCHI DI BANCA ETRURIA (DOPO AVER PASSATO TUTTA UNA VITA A TRAFFICARE CON COOP VICINISSIME A MAFIA, CAMORRA E NDRANGHETA, NON PER NIENTE, STILE "RENZUSCONIANISSIMI" SALVATORE BUZZI E MASSIMO CARMINATI)! AL QUIRINALE UN UOMO O DONNA VERA, ALLA NINO DI MATTEO O ILDA BOCASSINI, CHE FACCIA TRASLOCARE IL CANCROMICIDA DEL MONDO INTERO, SILVIO BERLUSCONI, DA PALAZZO GRAZIOLI A PALAZZO UCCIARDONE E SUBITO. O VERA RIVOLUZIONE SARA'! RIVOLUZIONE RIPRISTINANTE VERA DEMOCRACIA Y LIBERTAD! PS SEMPRE VINCENTISSIMI I GENI BORSISTICI GEORGE SOROS E MICHELE NISTA A PUNTARE SULLA SPAGNA. PARREBBE CHE DOPO AVER SAPUTO CHE IL MIGLIORE FIUTO PER QUALSIASI COSA AL MONDO, MICHELE NISTA, VEDA NON MALE LA SPAGNA, GEORGE SOROS ABBIA DECISO DI METTERCI SUBITO, MANCO FOSSERO NOCCIOLINE, 500 MILIONI DI EURO, NELL'AUMENTO DI CAPITALE DI BANCO SANTANDER. NON SARA' UN PAESE IMMUNE DI DIFETTI, LA SPAGNA, COME NON LO E' ALCUN PAESE DEL PIANETA TERRA. ANCHE LI, GLI SCANDALI PER CORRUZIONE NON MANCANO ( MA SONO AL MASSIMO UN DECIMO, RISPETTO A QUELLI DELLA CLOACA DI RENZUSCONIA)! PERO', NONOSTANTE MEZZO SECOLO DI NAZIFASCISMO, OGGI LI VI E' DEMOCRAZIA VERA. SIA AL POTERE MARIANO RAJOY DELL'OPUS DEI O IL PROMETTENTISSIMO PABLO IGLESIAS DI PODEMOS. NON VI SONO, SULLA GOVERNATIVA POLTRONA DI MADRID, VERMI STRAGISTI, FASCIOCAMORRISTI E PEDOFILI ALLA SILVIO BERLUSCONI, CHE SI FAN LE LEGGI PER GONFIARSI LE TASCHE DI SOLDI LERCISSIMI OLTRE CHE PER SGOZZARE A MORTE DEMOCRAZIA E GIUSTIZIA, OGNI GIORNO. E QUESTO, O IN PROPRIO, O COMPRANDOSI RAGAZZINI CORROTTISSIMI CHIAMANTISI MATTEO, COME MATTEO RENZI (OGGI). O IL NUOVO ADOLF HITLER: MATTEO SALVINI (DOMANI). MENTRE L'UNICO PADRONE, L'UNICO VERO BOSS DEL CANCROMICIDA DEL MONDO INTERO, SILVIO BERLUSCONI, UN ALTRO MATTEO, MATTEO MESSINA DENARO, SORRIDE E DICE " BRAVO MIO PRESTANOME BEDDU SILVIO BERLUSCONI, HAI TRASFORMATO L'ITALIA IN RENZUSCONIA, CHE IN REALTA' SEMPRE BERLUSCONIA E', AAAAAAA... COME PIACE A MMMIA, AAAA.... E' TUTTO UNA COSA NOSTRA, SILVIUZZEDDU BEDDU ...... CONTINUA COSI' CHE TI TROVIAMO QUALCHE ALTRA BEDDA PROSTITUTA DI 12-14 ANNI PELLU TEMPU LIBERO, AAAAA.... QUESTA VOLTA CAMBIAMO, AAAA... TE LA TROVIAMO FILIPPINA E LA FACCIAMO PASSARE PER LA NIPOTE DEL RE DELLA THAILANDIA, BHUMIBOL ADULYADEJ, IL RE PIU' RICCO DEL MONDO... CHE SPESSO E VOLENTIERI "ABOLISCE UFFICIALISSIMAMENTE LA DEMOCRAZIA"... SI... SILVIUZZEDDU BEDDU DA COSA NOSTRA, TI TROVIAMO UNA BAMBINA FILIPPINA DI 12 ANNI DA SBAVARE E TOCCARE QUANTO VUOI... E LA FACCIAMO PASSARE PER LA NIPOTE THAILANDESE DI BHUMIBOL ADULYADEJ, AAAA.... COSI' VEDRAI CHE QUANDO TELEFONI, PREOCCUPATISSIMO, DA PARIGI ( TANTO, FRA POCO, NELLA TUA DITTATURA DELLE BANANAS DI RENZUSCONIA, SUBITO, IL PASSAPORTO, TI RIDARANNO), I POLIZIOTTI O QUESTORI, SOLO E SEMPRE LA TUA VOLONTA', FARANNO, AAA"!!!
ram@zedat.fu-berlin.de (Stefan Ram): Jan 28 05:03AM

>Then, I'd think along the lines of »::std::hex« and stringstreams.
 
#include <iostream>
#include <ostream>
#include <ios> // ::std::hex
#include <sstream>
 
::std::string to_hex_string( int const i )
{ ::std::stringstream s; s << ::std::hex << i; return s.str(); }
 
int main(){ ::std::cout << to_hex_string( 16 )<< '\n'; }
ram@zedat.fu-berlin.de (Stefan Ram): Jan 28 03:06AM

>You asked for a function that converted to a string....
>You can't return an array from a function, so how about:
 
When I hear »string« in a C++ newsgroup, I first think of
»::std::string«, not of an array - even though I cannot
know whether the OP had this in mind.
 
Of course, »convert« is not the best verb between »int«
and »hex«, I'd use »render«: »render an int as a hex numeral«.
Then, I'd think along the lines of »::std::hex« and stringstreams.
bleachbot <bleachbot@httrack.com>: Feb 03 05:13PM +0100

Nobody <nobody@nowhere.invalid>: Feb 03 11:59AM

On Sun, 01 Feb 2015 15:22:17 -0800, Paul wrote:
 
> text[i] = s[i];
 
> return text;
> }
 
1. You aren't copying (or even allocating space for) the terminating null
byte.
 
2. boost::scoped_array is non-copyable, but the "return" statement
makes a copy.
Robert Wessel <robertwessel2@yahoo.com>: Feb 02 06:57PM -0600

On Wed, 28 Jan 2015 09:05:57 +0100, Martijn Lievaart
 
>As others pointed out anything is allowed to happen, but on any modern
>sane OS your app is terminated (unless it chooses to catch the violation,
>but that is unlikely and very rare).
 
 
In my experience, it's not very rare at all. YMMV.
Christopher Pisz <nospam@notanaddress.com>: Jan 27 12:54PM -0600

Is there some defined standard behavior about what should happen should
an Access Violation occur on a thread?
 
My application is single threaded, and I see in my debugger it has 12 or
so threads with COM and RPC and wininet crap. Everything in those
threads is completely outside of my source. So, I assume some third
party library (gsoap) is creating these threads. Randomly I get an
Access Violation on one or more of these threads.
 
Should I expect the process to terminate?
or
Should the thread terminate on its own?
 
What is expected to happen if this occurs?
Robert Wessel <robertwessel2@yahoo.com>: Jan 27 02:02PM -0600

On Tue, 27 Jan 2015 13:34:46 -0600, Paavo Helde
 
>Access violation is most usually caused by the program invoking Undefined
>Behavior, so anything can happen. Typically, in Linux world you could be
>pretty certain the process is killed in spot by the OS.
 
 
Well, unless the application set up a SIGSEGV or SIGBUS handler.
Christopher Pisz <nospam@notanaddress.com>: Jan 28 05:46PM -0600

On 1/28/2015 2:05 AM, Martijn Lievaart wrote:
 
> Goed luck!
 
> M4
 
I downloaded the latest GSoap and tried to do a separate test scenario
with it and couldn't get the simplest of communication to compile and
complete. In production code it is used in some manner that doesn't look
like any example I've ever seen online. The docs for it just stink.
Results are not what they say they are. I am at the point where I am
collecting evidence to support dropping it and using something else.
I've always went the route of "if it takes longer to figure out then to
write it over, hit delete"
Robert Wessel <robertwessel2@yahoo.com>: Jan 27 01:55PM -0600

On Tue, 27 Jan 2015 12:54:38 -0600, Christopher Pisz
>or
>Should the thread terminate on its own?
 
>What is expected to happen if this occurs?
 
 
That is firmly in the realm of undefined behavior as far as C++ is
concerned, so no help there.
 
Windows will by default terminate a process if any of its threads
abend. But the application can have code to catch* (not in the C++
sense) traps, and if it does, pretty much anything can happen again.
 
Other OSs are usually similar (*nix, for example), although there are
variances (using the traditional "ATTACH" mechanism to implement
threads in MVS, for example, creates something that's halfway between
a process and a thread, and the attached process/thread can abend
without the other processes/threads getting killed, although there is
a notification).
 
 
*One possibility is Windows' structured exception handling (SEH)
Martijn Lievaart <m@rtij.nl.invlalid>: Jan 28 09:05AM +0100

On Tue, 27 Jan 2015 12:54:38 -0600, Christopher Pisz wrote:
 
 
> Should I expect the process to terminate?
> or Should the thread terminate on its own?
 
> What is expected to happen if this occurs?
 
As others pointed out anything is allowed to happen, but on any modern
sane OS your app is terminated (unless it chooses to catch the violation,
but that is unlikely and very rare).
 
I want to chime in that your next course of action should be to determine
if:
 
1) The library is crap and (from the library users POV) randomly crashes.
Unlikely, but would certainly not be the first => Scrap the library and
get another.
 
2a) The parameter validation of the library leaves to be desired and you
pass it invalid parameters. Very well possible and probably hard to debug
=> Either pass it correct parameters or get a better library
 
2a) You pass the library invalid parameters which it cannot validate.
Very well possible and probably hard to debug => Pass it correct
parameters or get a library with a simpler API that can validate it's
parameters.
 
3) Something other. Still quite likely. => Rule it out or solve it.
 
My money is on 2a, possibly 2b.
 
If the offender is gsoap, you're lucky. It's FOSS, so create a debug
build and run it under a debugger. That should answer this question (note
that I did not say this would be easy)
 
Goed luck!
 
M4
"Öö Tiib" <ootiib@hot.ee>: Feb 02 08:10PM -0800

On Thursday, 29 January 2015 17:56:14 UTC+2, Christopher Pisz wrote:
> don't work and concept explanations. I am asking about the behavior to
> expect with an access violation on another thread, since it surprised me
> to see an access violation occur repeatedly without the process crashing.
 
I do not use that Gsoap but by description it sounds that it internally
handles Windows SEH exceptions and so prevents operating system from
terminating crashed process.
Handling SEH exceptions can be handy to terminate application and to
report defect without windows GUI message boxes about the crash (not
all applications have GUI). It can not be a tool for "fixing" defects.
scott@slp53.sl.home (Scott Lurndal): Jan 28 09:05PM

>Unfortunately no reply here has hit the nail on the head yet.
 
This isn't a classroom.
 
What is your goal for asking these questions?
Christopher Pisz <nospam@notanaddress.com>: Jan 26 04:27PM -0600

On 1/25/2015 10:29 AM, mike myers wrote:
> XML processing has turned into a common task that lots of C application designers suffer from. Using low-level XML access APIs for example DOM and SAX is tiresome and error-prone, specifically for large XML vocabularies. XML Data Binding is really a new alternative which automates a lot of the job by showing the data saved in XML like a statically-typed, vocabulary-specific object model.
 
> http://www.liquid-technologies.com/xmldatabinding/xml-schema-to-cpp.aspx
 
Ok, maybe
 
Who made the CPerson class? It's generated? If so, what's it look like?
Do I derive from it to add my functionality?
 
How do we know your library is free of memory leaks? "using reference
counting classes" could mean someone rolled their own reference counting
mechanism, which makes me trust it less rather than more. How many
people are using it and how much testing was done on it.
 
It would really stink to dig into a new not so popular library and find
out after building on it quite a bit that it leaks. That's been my
experience with _alot_ of XML libs in the past.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: