httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Leplay <>
Subject Problem with pool allocation
Date Tue, 21 May 2002 13:48:22 GMT
I use a pool to alloc memory but It didn't work.The folowing line of code
explain my problem:

struct myStruct{
        char *var;

myStruct *myVar;

static apr_pool_t *archi_prox_pool = NULL;

void server_config(...){
        apr_pool_create(&archi_prox_pool, NULL);
        myVar=(char *)ap_palloc(archi_prox_pool,5*sizeof(char));

        //after ap_pstrdup myVar[0]="serv,รง{"

If anyone have an idea.

Best regards.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message