Hi friends,
my program sometimes breaks when I include a wrs packed file with all the resources while it works good without packing the resources.

Has someone experienced something like this?

I automated the resource files inclusion with a little code, so I ensured that all the resources are into the file:
Code:
#include <acknex.h>

#define PRAGMA_PATH "game.cd\\resources.cd"

TEXT* tDir = { strings = 500; flags = SHOW; }

var porcentaje = 0;

PANEL* PAN_Info =
{
	pos_x = 300;
	digits ( 0, 0, "%.0f", *, 1, porcentaje );
	flags = SHOW;
}

STRING* stemp = "";


void main()
{
	var i=0;
	var puntero=0;
	
	wait(3);
	
	var cantidad = txt_for_dir ( tDir, "game.cd\\resources.cd\\*.*" );
	
	var Archivo = file_open_write ( "resources.wdl" );
	
	for ( i=0; i<cantidad; i++ )
	{
		str_cpy ( stemp, (tDir.pstring)[i] );
		puntero = str_stri ( stemp, "." );
		str_clip ( stemp, puntero );
		
		if ( !str_cmpi ( stemp, "dll" ) && !str_cmpi ( stemp, "exe" ) && !str_cmpi ( stemp, "wdf" ) && !str_cmpi ( stemp, "wrs" ) && !str_cmpi ( stemp, "wdl" ) )
		{
			file_str_write ( Archivo, "BIND <" );
			file_str_write ( Archivo, (tDir.pstring)[i] );
			file_str_write ( Archivo, ">;\n" );
		}
		
		porcentaje = ( i * 100 ) / cantidad;
		wait(1);
	}
	
	file_close ( Archivo );
	
	wait(-1);
	
	sys_exit ( "" );
}



Could it has something to do with the file names long? There are quiet long file names into my resources...

Any idea will be great indeed!