2008/10/23 minggi <[EMAIL PROTECTED]>

>
> Hi
>
> I started with my first xerces-c program. But after two lines code, i have
> the first errormessage:
> Segmentation fault!!


[snip]

>
>        try{
>                XMLCh tempStr[100];
>                XMLString::transcode("LS", tempStr, 99);
>                cout << "end\n";
>                return 0;
>        }catch(...){
>                cout << "Error";
>        }
>
>
You need to call XMLPlatformUtils::Initialize() before any other Xerces
function.
See http://xerces.apache.org/xerces-c/faq-parse-3.html#faq-3 for reference.

Best regards,
Lucian

Reply via email to