in reply to Re: embedding Perl into C for Windows
in thread embedding Perl into C for Windows

Hello anonymous monk, thanks for your answer. The solution was:
PERL_SYS_INIT3(&argc,&argv,&env); PL_exit_flags |= PERL_EXIT_DESTRUCT_END; PERL_SYS_TERM();
I added these three commands - now it works! Frank