Hello, --->I' sorry but thanks toThank you to consider only this email, the previous had a bad copy / paste.<---
<<<< sv_setpvn(out_buffer, compressed_buffer, samples_count); >>>>> I have an application which run with Inline C with 120 Windows threads. THe application run well with 120 threads but when i increase the number of thread to 200, ->>>> i have an windows crash applet APPCRASH error code c000005. I have comment the sv_setpvn function and the crash didnt appeared. Is there a limitation with the number of thread OR my code is not good ? For information samples_count is ALWAYS equal to 160. OS context ------------ Windows 2008 server Perl context -------------- perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x64-multi-thread Thanks Laurent H. void alaw_compress_buffer_optimized(char *linear, int samples_count, SV * out_buffer) { int i; unsigned short index; short sample; short * samples_vals=(int) linear; unsigned char compressed_buffer[samples_count]; for (i=0;i<samples_count;i=i+1) { sample=samples_vals[i]; index=(samples_vals[i] + 32767); compressed_buffer[i]=l2aTable[index]; } sv_setpvn(out_buffer, compressed_buffer, samples_count); } ___________________________________________________________ L'actrice néerlandaise Sylvia Kristel, alias "Emmanuelle", est décédée. Plus d'infos sur Voila.fr http://people.voila.fr/people/actu-stars/plus-de-people/sylvia- kristel-alias-emmanuelle-est-decedee-people_4136507.html ___________________________________________________________ L'actrice néerlandaise Sylvia Kristel, alias "Emmanuelle", est décédée. Plus d'infos sur Voila.fr http://people.voila.fr/people/actu-stars/plus-de-people/sylvia-kristel-alias-emmanuelle-est-decedee-people_4136507.html ___________________________________________________________ L'actrice néerlandaise Sylvia Kristel, alias "Emmanuelle", est décédée. Plus d'infos sur Voila.fr http://people.voila.fr/people/actu-stars/plus-de-people/sylvia-kristel-alias-emmanuelle-est-decedee-people_4136507.html