perl crash with Inline  / APPCRASH  // WINDOWS

[email protected] (lh)
Newsgroups perl.inline
Message-ID <884121862.350751350582346978.JavaMail.www@wwinf7126>
Hello,



<<<< sv_setpvn(out_buffer, expanded_buffer, samples_count * 2); >>>>>



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.

Thanks

Laurent H.

void alaw_expand_buffer_optimized(unsigned char * compressed, int samples_count, SV * out_buffer )
{
short expanded_buffer[samples_count];
int i;

for (i=0;i<samples_count;i++)
{
expanded_buffer[i] = a2lTable[compressed[i]];
//printf("i=%d compressed=%d ___ expanded_buffer=%d\n",i, compressed, expanded_buffer[i]);
}

sv_setpvn(out_buffer, expanded_buffer, samples_count * 2);
}
___________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.