Hi,
before we go into details about url-mapping, we need to get tntnet stable.
The reason for crashes is a problem with g++. The problem is the inability to
catch exceptions. Throwing an exception in a c++-program results in a crash.
I have currently no idea, how to fix that. Maybe rtti in gcc (or g++) is
deactivated. Here is a little testcase:
#include <iostream>
int main(int argc, char* argv[])
{
try
{
std::cout << "throwing integer exception" << std::endl;
int i = 5;
throw i;
std::cout << "this shouldn't be reached" << std::endl;
}
catch (int e)
{
std::cerr << "integer-exception " << e << " catched " << std::endl;
}
}
Even if I remove the prints and only throw the integer exception, the program
crashes with "aborted":
int main(int argc, char* argv[])
{
try
{
int i = 5;
throw i;
}
catch (int e)
{
std::cerr << "integer-exception " << e << " catched " << std::endl;
}
}
and the result:
[EMAIL PROTECTED]:~# ./ex
Aborted
[EMAIL PROTECTED]:~#
Any ideas?
Tommi
Am Freitag, 29. Juni 2007 19:23 schrieb Thorsten Glaser:
> Dixi:
> >Maybe I have to strip .jpg off here?
>
> No, because when I change:
>
> MapUrl /$ [EMAIL PROTECTED]
> MapUrl /favicon.ico [EMAIL PROTECTED] favicon
> -MapUrl /([^/]+)$ [EMAIL PROTECTED]
> +MapUrl /([^/]+)(\..+)?$ [EMAIL PROTECTED]
> MapUrl /([^/]+)/$ [EMAIL PROTECTED]
> -MapUrl /([^/]+)/(.+)$ [EMAIL PROTECTED]
> +MapUrl /([^/]+)/(.+)(\..+)?$ [EMAIL PROTECTED]
>
> include /etc/fwwif/*.app
>
> MapUrl /images/(.*) [EMAIL PROTECTED] $1
>
> then not even the favicon or stylesheet work almost right.
>
> //mirabile
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers