LoadRunner Error -- memory violation: Exception ACCESS_VIOLATION received

Hello

I have some challenges with a script that uses parameter and decryption, the script is working fine on two of my computers but on the last one i get this error.

Action.c(13): Error: C interpreter run time error: Action.c (13): Error -- memory violation : Exception ACCESS_VIOLATION received. [MsgId: MERR-19890]

The script is working fine if i run it VuGen on the computer, i only get the error in BPM. 

Here is the part of the script that fails:

extern char *decryptAES(char *, int); 

Action()
{
    int i;
    char * my_host;
    char clientname[20];
    char window_name[100];
    long xpos, ypos, width, height;
        
    lr_load_dll("aes_crypt.dll"); /*loading the encryption AES Liabrary*/
    lr_save_string(decryptAES(lr_eval_string("{ADPassw}"),-1),"PW");   //L13 fails
    
    my_host = lr_get_host_name( );
    sprintf(clientname, my_host);

some ideas on why it only fails on one of my machines?

Protocol : Citrix

LoadRunner: 12.00, BPM: 9.24