Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ExceptionHandling funzt nicht...

Empfohlene Antworten

Veröffentlicht

Moinsen,

habe folgendes Problem:


#include <stdio.h>

int main()

{	

    printf("START-THROW\n");

    try

    {

        printf("throwing\n");

        throw int(123);

    }

    catch (int e)

    {

        printf("catched %d\n", e);

    }

    printf("END\n");

    return 0;

}

kompiliert mit "g++ -Wall -ggdb -o prog prog.cpp"

sollte mir eigentlich

START-THROW

throwing

catched 123

END

auf der Konsole ausgeben.

Zugegeben: Macht er auf einem Rechner auch... jedoch auf zwei anderen Rechnern bricht er mit SIGABRT bei "trow int(123)" ab.

START-THROW

throwing

Abgebrochen.

Seltsam ist nur, dass alle drei Rechner über die gleiche Umgebung verfügen

SuSE 9.1, AMD Athlon, 1,0 GHz, 512MB

Compiler: gcc 3.3.3 Libs: glibc 2.3.3-97

Hat jemand eine Idee, was da sein könnte?

Bin für jeden Hinweis dankbar!

Gruß

PfundGehacktes

PS: Hab's auf Windows versucht -- ohne Probleme. Denke deshalb, das als Linux-Problem hier richtig -- falls nicht, bitte verschieben.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.