Stratos: Punto de Encuentro de Desarrolladores

¡Bienvenido a Stratos!

Acceder

Foros





Menu

Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menu

Temas - samsaga2

#1
General Programadores / Nokia SDK
18 de Julio de 2006, 10:46:23 AM
¿Me lo parece a mi o la web de nokia es una kaka de la vaka? Siempre que intento bajarme un link me encuentro decenas de paginas no encontradas y encima la web es lentisima (y no es culpa de mi conexion).

¿Alguien sabe donde bajarse SDKs de nokia (el S40) de alguna web que no sea la de nokia?
#2
General / MUDs
12 de Julio de 2006, 02:20:17 PM
Ultimamente he comenzado a viciarme a los Muds, el problema es que no encuentro Muds en castellano comparables a los que hay en ingles (como BatMud).

¿Conoceis alguno que este bien y sea en la lengua de Cervantes?
#3
Off-topic / Wtf
17 de Noviembre de 2005, 08:34:05 AM
 Via la pagina genial http://thedailywtf.com/

Le doy un premio de veinte millones de euros al primero que consiga desentrañar esta bonita declaracion de variables locales.

Citar
label 8888,9998,9999;
  const inpfl = ' input file: ';
  mdkfil___ = 'mdco___.mdk';
  alfn      = 'mdconvr.Ã '; { formerly .MFO, earlier .DAT }
  n_mtrls = 5; n_parms = 12; n_midsp = 2; idfirst = -3;
  n_strms = 3; sndf = 13; midf = 14;
    idflast = 14; {n_parms+n_midsp;sndf=parameter sound/controller; midf=param MidiChannel}
  n_prgs = 32; mx_mtrs = 6; mx_puls = 256; mx_scls = 6; mx_lyrs = 10;
  mouse_accel = 0.9; mouse_start_wait = 50 { ticks @ 5ms = 250ms };
  mx_tnl_dg = 12; mx_chdsz = 3; mx_evt_dns = 24; mx_midO = 9; titY = mx_y;
  rt_X = 57; rt_Y = 14; ct_X = 41; tmA_Y = 22; tmZ_Y = 23; tmN_Y = tmZ_Y;
  upr_lnY = 334; lwr_lnY = 17; d_idfY = 13; d_rlgY = 10; Mpatches = 6;
  mtrl_dspW = 96; mtrl_dspH = 24; emxp = 32; { mx_puls/8 (s.above) }
  ln_pdqs = 40; {=mx_x/16} pdqadr_arrlen = 25600; { 64mx_y }
  tol_up_scn = 77; tol_dn_scn = 75; ord0 = 48; mx_outlen = 10;
  spd_up_scn = 72; spd_dn_scn = 80; mx_Fsh = 99; Fshsiz = 54;
  spd_hm_scn = 71; FshflInts = 5400; { = 100 flashes @ max 54 integers }
  insert_scn = 82; m5x = 5; v3 = 30003; mxprgF = 9; mxprkscF = 9;
  prompt_Y = 24; lgd_X = 26; bxp = #8; dmy_val = -999;
  stop_key = #27; wait_key = #32;
  bot_smt = -127; top_smt = 127; top1_smt = 128; n_smts = 255;
  dsp_wd = 32; pdq_wd = 16; pdq_ht = 8; mx_pdqs = 850;
  very_bot_pch = 0; very_top_pch = 127; bot = true; top = false;
  min_tol = 10; dft_tol = 40; max_tol = 255; blank = ' ';
  min_spd = 77; dft_spd = 100; max_spd = 300; n_cmdKys = 14; cmdKX = 9;
  mx_Mcmds = 8;  Mwd = 16; b7 = 128; up = 1; mx_rand = 30000;
  mx_Mchns = 16; Mht = 9; Awd = 26;  dn = 0; prompt_X = 5;
  xpr_qty = 3; xpr_pts = 100; mus_qty = 6; oba_ht = 20; nine_hrs = 32400;
  xpr_wd = 16; xpr_ht = 16;   mus_ht = 16; ost_ht = 18;
  pdq_noct_ofs = 308; { 1st note+oct 'C=0'~'G=9' in .PDQ }
  pdq_nome_ofs = 292; { 1st notename 'A'~'G' in .PDQ }
  pdq_idvl_ofs = 437; { 1st allochdr '8.8' in .PDQ }
  pdq_hexn_ofs = 501; { 1st hexnumer '00'~'FF' in .PDQ }
  minPstr  = '0 1 0 1 0 0 1 0 0 0 0 0 1 0'; { param.values min/dft/max }
  dftPstrL = '24 125  6 1 8 60 1 12 48  8 64 8 1 1';
  dftPstrM = '18 125 12 2 6 60 2 10 60 12 66 8 1 2';
  dftPstrR = '12 125 18 3 4 60 3  8 72 16 68 8 1 3';
  maxPstr  = '24 255 24 255 127 127 3 12 127 127 127 127 127 16';
  maxP1 = 24; { must tally with start of 'maxPstr' }

type
  str10 = string[10];
  str20 = string[20];
  str128 = string[128];
  pdqtyp = array[1..pdq_ht] of integer;
  intfil = file of integer;
  pdqfil = file of pdqtyp;
  chr_set = set of char;
  byt_set = set of 0..127;
  b127arr = array[0..127] of byte;
  b255arr = array[0..255] of byte;
  dodex2 = array[0..11] of string[2];
  key_arr = array[1..idflast,dn..up,1..n_strms] of char;
  strm_chr_arr = packed array[1..n_strms] of char;
  strm_int_arr = array[1..n_strms] of integer;
  strm_lnt_arr = array[1..n_strms] of long_integer;
  smt_byt_arr = packed array[bot_smt..top_smt] of byte;
  smt_int_arr = array[bot_smt..top_smt] of integer;
  smt_lntbuf = array[0..n_smts] of long_integer;
  parm_arr = array[1..n_parms] of integer;
  prmd_arr = array[1..idflast] of integer;
  xparm_arr = array[idfirst..idflast] of integer;
  xpryt   = array[0..36] of integer;
  xpr_set = array[1..xpr_qty] of xpryt;
  xpr_lst = array[1..xpr_pts] of xpryt;
  i16arr = array[1..xpr_ht] of integer;
  prmV_rec = record num: strm_int_arr;
  vlu: array[1..n_strms,1..idflast] of integer; end;
  prmC_rec = record min_vlu,dft_L,dft_M,dft_R,max_vlu : prmd_arr; end;
  rhy_max_rec = record std,ofs,ndx : strm_lnt_arr; end;
  Tfil_rec = record fv: text;   name,extn: string; stat: char; end; {b:  stat}
  Ifil_rec = record fv: intfil; name,extn: string; stat: char; end;
  midicmd_rec = record botK,topK,qtyK,str_sl,parm,valu : integer;
    ctrlset : byt_set;
    got_cmd : boolean;
    scl_step,mtr_step,ins_step : real;
    prm_step : array[1..n_parms] of real;
    code : array[-n_mtrls..idflast,0..127] of integer;
    end;
  midIbx_rec = record X : array[0..mx_Mcmds] of integer;
    Y : array[0..mx_Mchns] of integer;
    end;
  button = record X,Y,W,H,bt_sz,bt_Xofs: integer;
    bt_styl: array[false..true] of integer;
    ltr: array[false..true] of char;
    alf,nu,on,busy: boolean;
    end;
  box = record X,Y,W,H: integer; held: boolean; end;
  mxFS01 = array[0..1] of mxFS;

var   
  dforce,y,tol_ms,t_str,tmr_scn,chdsz             : byte;
  Cprm,Cch_buf,key,oct,fil_stat,outall_key,
  laT_key,laP_key,tol_up,tol_dn,clock_key,
  midO_tgl,midI_wip,spd_up,spd_dn,spd_hm,
  dsk,tmblk_key,scat_key,tmr_key,dmy_key,
  hlpK,final_key,next_key,boing_tgl                : char;
  xplay_ok,play_ok,init_orch,Krpt_on,Fsh_recalled,
  xplaying,fobtained,fopened,new_input,prk_vgn,
  mdkfil_open,midOwing,idf_vgn,mdkfil_vgn,oba_vgn,
  dsp_boing,alfok,pdqok,Acting,Fshfl_open,exe_vgn,
  Mshudder,cmdKhelping,running,Fpicked,idp_ok,hrm_ok,
  mouse_hidden,mouse_forbidden,dsp_all_done,prk_ok,
  got_clcmd,got_kycmd,got_mdcmd,known,sending_outB,
  on_left_button,mdrg_new,flashed,inbx,was_inbx    : boolean;
  z,a,q,S,mdmnX,mdmnY,mshp,lshp,pFprmp,pFprep,
  tol_Y,spd_Y,hdr_Y,idf_Y,ivl_Y,kyc_Y,clo_Y,mdn_Y,idvl_X,
  i,i_mdkfil,iC,err,vl,play_punct,i_xpr,lxx,lyy,xputval,
  i_cmdKyhlp,n_scls,n_mtrs,Tsc1,Tms1,Tsc2,Tms2,Fsh_chn,
  shap0,shap1,Csec,Cmsc,Cstr,Cvlu,Cpunct,SmidO,
  spd_pc,n_pdqs,kyc_hd,clo_hd,kyhd16,tmhd16,ctrldir,
  i_flmn,inflmn,x_Fsh,i_Fsh,r_Fsh,z_Fsh,Fsh_bytes,mxoutSln,
  start_sec,start_msc,dsp_sc,dsp_ms,ldsp_sc,
  lsec,lmsc,r_tnl_dg,intbuf,pchbuf,kysc,m_P,m_S,
  mtrl_lftX,mtr_topY,scl_topY,mouse_wait,hrmIDcod,
  prmpFs,prepFs,inpFs,kdamX,kdamY,inS              : integer;
  prgbas,scdr0,lbuf                                : long_integer;
  start_time,stop_time,rbuf,r_byts                 : real;
  dflt_nam,Fshflnam                                : str20;
  tol_lgd,spd_lgd,pls_lgd,tme_lgd,tmA_lgd,tmZ_lgd,tmN_lgd,
  mid_lgd,cmd_lgd,idf_lgd,ivl_lgd,kyc_lgd,clo_lgd,
  mdn_lgd,hdr_lgd,sbuf,mdkfilnam,Mcmdstr,kdamS,
  mPmstr,mStstr,abskfldr,
  iFstr,zFstr,TOStr,prgnam,xputstr,prmpfldr,prepfldr : string;
  mdkfil                             : text;
  idpfil                             : Tfil_rec;
  hrmfil,prkfil                      : Ifil_rec;
  Fshfl                              : intfil;
  rhy_max                            : rhy_max_rec;
  prmC                               : prmC_rec;
  prmV                               : prmV_rec;
  midicmd                            : midicmd_rec;
  midIbx                             : midIbx_rec;
  RecO,SndO,TmeO,FshO,ThrO,HdrO,
  IdpO,HrmO,PrkO,StaO,DfRO           : button;
  idvlbx,kyclbx,mdrgbx,outSbx,
  iFshbx,zFshbx,rmapbx,prmpbx,prepbx,
  idfrbx,midObx,helpbx,finpbx,
  idfKbx,Byt2bx,Malcbx,xputbx        : box;
  ost_bx                             : array[1..n_strms] of box;
  chroma                             : dodex2;
  tol_pdq,spd_pdq,pdqbuf             : pdqtyp;
  tim_set,mtr_set,out_set,Fsh_set,
  scl_set,pls_set,ins_set,mid_set,
  alc_set,ost_set,
  key_set,tgl_set,mtrl_set,dgt_set,
  biggest_set,meddle_set,oper_set    : chr_set;
  idf0set,ivl0set,kyc0set,clo0set,
  idf_set,ivl_set,kyc_set,clo_set    : byt_set;
  xpr_set1,xpr_set0                  : xpr_set; { total set - each unique }
  xpr_lst1,xpr_lst0                  : xpr_lst; { list in order of use }
  key_info,uprasc,unused,Uz,Uq,Ua    : b127arr;
  swapky                             : b255arr;
  prm_key                            : key_arr;
  pls_len,cyc_len,mtr_no,
  set_pls,pls_ctr,scl_no,
  start_pls,old_chdsz,
  max_smt,min_smt,midOutY,
  top_pch,bot_pch,idfX,i_midO,
  dur_ctr,due_sec,due_msc,
  ostat,ostartpls                    : strm_int_arr;
  mtr_key,scl_key,pls_key,
  ins_key,mid_key,out_key,
  ost_tgl                            : strm_chr_arr; { packed array }
  hrm_prior                          : smt_int_arr;
  idfY,idf_hd,ivl_hd,idflgdX,idflgdY : xparm_arr;
  prmproc,preproc      : mxFS01;
  Iflst                : array[1..3] of mxFS01;
  n_puls               : array[1..mx_mtrs] of integer;
  Mcmdarr              : array[1..mx_Mcmds] of byte;
  mSt,mPm,nSt,nPm      : array[1..mx_Mchns] of integer;
  cmdKstr              : array[1..n_cmdKys] of string;
  titS                 : array['A'..'U'] of string;
  tgl_key,hxMchn       : array[0..n_strms] of char;
  r_str,modamping,composing,
  vce_on,ins_up,mid_up : array[1..n_strms] of boolean;
  pchgvn               : array[bot_smt..top_smt] of boolean;
  notename             : array[0..127] of string[3];
  flgdx_X,flgd_Y       : array[1..3] of integer; { text coords }
  flgd,Ifldr,Ixt       : array[1..3] of string[32];
  ActO                 : array[idfirst..idflast] of button;
  idflgd,idfp          : array[idfirst..idflast] of string[32];
  strat                : array[1..mx_mtrs,1..mx_lyrs] of byte;
  xpxR                 : array[0..mx_cols] of integer;
  ypxR                 : array[0..mx_lns] of integer;
  mdp                  : array[1..n_midsp] of integer;
  Fshbuf               : array[1..FshflInts] of integer;
  midi_cmd             : array[0..15] of char;
  qhx                  : array[0..15] of integer;
  pdq                  : array[1..mx_pdqs] of pdqtyp;
  xprI                 : array[1..xpr_qty] of i16arr;
  mcrs,mask            : array[1..mus_qty] of i16arr;
  rmap                 : array[1..n_strms,8..15] of byte;
  rmapping             : array[1..n_strms,8..15] of boolean;
  rmapX,B2pm           : array[8..15] of integer;
  rmapY                : array[1..n_strms] of integer;
  outS                 : array[1..n_strms] of string;
  outB                 : array[1..n_strms] of b127arr;
  oba,obaL,obaR        : array[1..oba_ht] of integer;
  mtx5cod              : array[0..7] of string;
  new_pch,old_pch      : packed array[1..n_strms,1..mx_chdsz] of byte;
  damped      : array[1..n_strms,0..127] of boolean;
  ost_on      : array[1..n_strms,0..1] of boolean;
  nonpitch    : array[1..n_strms,1..mx_chdsz] of boolean;
  dsp_done    : array[1..n_strms,idfirst..idflast] of boolean;
  ostplsok    : array[1..n_strms,1..mx_puls] of boolean;
  ostpch      : array[1..n_strms,1..mx_puls,1..mx_chdsz] of integer;
  ost_chdsz   : array[1..n_strms,1..mx_puls] of integer;
  rhy_ndx     : array[1..n_strms,1..mx_puls] of long_integer;
  a_smt,z_smt : array[1..n_strms,1..mx_chdsz] of integer;
  pdqadr      : array[0..pdqadr_arrlen] of integer;
  mtrdsp      : array[1..mx_mtrs] of string;
  scldsp      : array[1..mx_scls] of str128;
  idp,idpXmv3 : array[1..mx_mtrs,1..mx_puls] of integer;
  idpXv8      : array[1..mx_mtrs,1..mx_puls,0..mx_tnl_dg] of integer;
  prbzn_flr   : array[1..mx_scls,0..mx_tnl_dg,bot_smt..top1_smt] of integer;
  prbzn_slice : array[bot_smt..top1_smt] of integer;
  i8p         : array[1..n_strms,1..mx_puls] of integer;     {attenuation bezogen}
  attfac1     : array[0..maxP1,0..mx_puls] of real;
  attfac2     : array[0..maxP1,0..b7] of real;
  ostfnt      : array[0..1,1..18] of integer; { 18 = ost_bx[n].H (q.v.) }
  kdamH       : array[1..24] of integer;

#4
General Programadores / Haddd Please Help
13 de Noviembre de 2005, 11:34:13 AM
 Estoy liado con el motor de fisicas Newton y no hace mas que darme quebraderos de cabeza. Estoy con el rollo de control del jugador y me encuentro que le da por atravesar paredes. He visto que tu tenias el mismo problema http://www.physicsengine.com/forum/viewtop...opic.php?t=1318, bueno parecido porque yo no estoy usando impulsos si no fuerza. ¿Como lo solucionaste?
#5
General Programadores / Symbian
12 de Septiembre de 2005, 08:46:43 PM
 Me seria de gran ayuda una pequeña explicacion para empezar a programar juegos para la n-gage. El problema basico es que nokia tiene miles de millones de trillones de sdk diferentes y no se ni tan siquiera por cual empezar. He intentado alguno pero me ha empezado a pedir dependencias y me he acojonado XD (que si ActivePerl, que si el JRE 1.4.1...). Por ejemplo... que coño significa FP3 FP2, no he encontrado ningun sitio que lo explique.
#6
General Programadores / C, Linux Y Getenv
30 de Agosto de 2005, 07:41:42 PM
 No tengo ni la mas remota idea de que estoy haciendo mal:

Citar
samsaga2@ubuntu:~/tmp $ cat kk.c
main() {
        printf("%s\n", getenv("COLUMNS"));
}

samsaga2@ubuntu:~/tmp $ gcc kk.c
samsaga2@ubuntu:~/tmp $ ./a.out
(null)
samsaga2@ubuntu:~/tmp $ echo $COLUMNS
80

Alguna pista?
#7
Off-topic / Nethack
30 de Agosto de 2005, 08:51:36 AM
 Alguno de los que pululan por aqui se le da bien el Nethack? Es que no logro subir de los 10.000 puntos.
#8
General Programadores / Stl Y Streams
01 de Agosto de 2005, 01:06:58 PM
 A ver si podeis echarme una mano que via google no me sale ningun tipo de documentacion. Necesito crear mi propio stream que funcionaria igual que el istream pero con la funcion eof limitada (para que piense que el archivo es mas pequeño de lo que es).
#9
General Programadores / Memoria Y J2me
18 de Julio de 2005, 08:11:47 PM
 Tengo problemas de memoria con mi ultimo jueguecillo para moviles. A ver si alguien tiene una poca mas de experiencia y es capaz de aconsejarme sobre cuanta memoria puedo disponer mas o menos para mis pequeñas creaciones. Supongo que el problema me viene o de un array de 80x40 (que implican 3200 news) o una funcion que genera el nivel de forma aleatoria que tira un poco de la pila.
#10
General Programadores / Interesante Lenguaje
26 de Abril de 2005, 05:22:04 PM
 Leyendo cosas sobre Nemerle he encontrado un lenguaje de programacion bastante interesante: Speagram.

Un ejemplo de la web:

CitarVariable *a* as natural number.
Variable *n* as natural number.

New function natural number *!* as natural number.
Let 0! be 1.
Let n! be (n-1)! * n.

New function natural number *^* natural number as natural number.
Let a^0 be 1.
Let a^n be a * a^(n-1).


New function natural number *is* *divisible* *by* natural number
  as boolean.
Let a is divisible by n be a % n == 0.

New function *all* *numbers* *smaller* *than* natural number
  *and* *greater* *than* *one* as list of natural number.
Let all numbers smaller than 0 and greater than one be [].
Let all numbers smaller than 1 and greater than one be [].
Let all numbers smaller than 2 and greater than one be [].
Let all numbers smaller than n and greater than one be
  append n-1 to all numbers smaller than (n-2) and greater than one.

New function natural number *is* *not* *divisible* *by*
  *any* *of* list of natural number as boolean.
Let n is not divisible by any of [] be true.
Variable A as list of natural number.
Let n is not divisible by any of a::A be
  it is false that n is divisible by a and n is not divisible by any of A.

New function natural number *is* *prime* as boolean.
Let 0 is prime be false.
Let 1 is prime be false.
Let n is prime be n is not
  divisible by any of all numbers smaller than n and greater than one.

Close context.

Si bien no creo que sea factible para usarlo de forma seria (considero que hay que escribir demasiado) es por lo menos bastante curioso.
#11
General Programadores / Raiz Cuadrada
18 de Abril de 2005, 06:12:33 PM
 A ver si podeis echarme una mano. Estoy liado haciendo chorraditas via j2me y me encuentro que me hace falta la funcion para calcular una raiz cuadrada pero esta no viene con el API del j2me.

¿Sabeis algun algoritmo para calcular la raiz cuadrada de dos numeros enteros? Es para un juego asi que prima la velocidad sobre la exactitud.
#12
General Programadores / La Utilidad Definitiva
06 de Abril de 2005, 10:19:56 AM
 Ya no hace falta que os esforceis mas comentando vuestros codigos Commentator lo hara por vosotros.
#13
Off-topic / No Me Lee El Cd!
16 de Marzo de 2005, 02:57:59 PM
 Alguien puede resolverme el problema? Mi ordenador no es capaz de leerme el cd.

Y tengo mas problemas a ver si sois capaces de solucionarmelos  :rolleyes:  
#14
Off-topic / Situaciones Reales
22 de Septiembre de 2004, 08:29:33 AM
 Echadle un ojo:

http://rinkworks.com/stupid/cs_programming.shtml

La que mas me ha hecho gracia:

This little bit of Java was written as part of a group project at university. The friend who passed it to me has been bouncing off the walls about the quality of the guilty party's code (silly things like defining error and success codes with the same value so you don't know what the return code means and stuff like that), but this is the most obviously stupid bit.

public int convertItoi(Integer v)
{
   if (v.intValue()==1) return 1;
   if (v.intValue()==2) return 2;
   if (v.intValue()==3) return 3;
   if (v.intValue()==4) return 4;
   if (v.intValue()==5) return 5;
   if (v.intValue()==6) return 6;
   if (v.intValue()==7) return 7;
   return 0;
}  
#15
Off-topic / The Infinite Monkey Protocol Suite
02 de Abril de 2004, 04:16:24 PM
 Despues dicen que los programadores perdemos el tiempo en tonterias...

http://www.bpfh.net/rfc/rfc2795.html
#16
Off-topic / Best 3d Engine Of The World
20 de Febrero de 2004, 05:28:23 PM
 Busco grupo de compañeros para montar el mejor engine 3d de la historia (quiero llegar a la perfeccion). La idea seria en lugar de modelar todo a base de poligonos recrearlo con moleculas y cuantos aplicando las formulas que se conocen de la teoria cuantica (perfecto no puede ser hasta que no unifiquen todas las leyes esas de gravedad y demas).

Necesito:

- Algun encargado que se encarge de contar cuanto por cuanto todo el universo e introducirlo en nuestra base de dados (en teoria esto es imposible por lo de la incertidumbre pero bueno que los cuente yo ya mirare como lo hace)

- Algun fisico-teorico que se encargue de suministrarnos las formulas cuanticas esas (no leerse cuantííícas)

- Alguien que ponga la pasta para que IBM nos monte el pedazo de ordenador que haria falta para montar ese cacharro.

No habra renumeracion pero si lo conseguimos tendremos exito inmediato asegurado y saldremos en todos los programas de la prensa rosa como unos frikies de cuidado.

Aunque el engine no seria del todo perfecto por las limitaciones teoricas podriamos forrarnos prediciendo el mercado de valores.

Alguien se apunta?

PD: estoy burrio como una ostra  :rolleyes:

SMILE WORLD

:lol:      Ta contento porque ta cagando
(shit)  (asco)     y este otro saborea lo rico que esta
(grrr)    Este ta estreñio y ni haciendo fuerza oye
:ph34r: Pero tranquilos viene nuestro ninja al rescate
(twist)  La culpa es de este que le ha puesto un tapon en el culo
(rules)  Pero el nuestro ninja lucha y logra quitarselo
(ses)    Y asi de pequeñito se queda despues de haber cagau (porque claro la mielda ocupa sitio)

Mas historias proximamente (si no me banean por semejante jilipollez claro)

#17
General / Please, Explicacion Que Si No Me Muero
04 de Septiembre de 2003, 05:42:48 PM
 Que es un analista organico? Analisis de como crecen las plantas o algo por el estilo  (uoh)? Por favor que alguien me lo explique para no tener que comerme mas la cabeza  (nooo) .

De paso aprovecho para preguntar que es exactamente un analista programador? Uno que aparte de programador hace el diseño del programa (en uml supongo)?
#18
Off-topic / Quiero Que Vuelva...
24 de Julio de 2003, 05:02:49 PM
 Old-computers
Hecho de menos mi viejo ordenata :(
#19
General Programadores / Penchada al hacer un new con el c++
02 de Junio de 2003, 08:22:47 PM
                                Que motivos pueden haber para que se bloquee un programa en c++ al hacer un new de un objeto? Ni siquiera da tiempo a llamar al constructor de susodicho objeto y parece ser que no tengo ningun puntero loco. Y lo mas raro, en windows este codigo me va bien pero en linux me peta :'(. Para mas señas hago un copy&paste del backtrace a la hora de la penchada total:



Starting program: /home/samsaga2/workspace/KKEngine/bin/kkengine

[New Thread 16384 (LWP 1562)]

                                                                               

Program received signal SIGINT, Interrupt.

[Switching to Thread 16384 (LWP 1562)]

0x40319fe4 in mallopt () from /lib/libc.so.6

(gdb) bt

#0  0x40319fe4 in mallopt () from /lib/libc.so.6

#1  0x40319145 in malloc () from /lib/libc.so.6

#2  0x4025ec56 in operator new(unsigned) () from /usr/lib/libstdc++.so.5

#3  0x0804f4d6 in KKEngine::Resources::getTexture(char*) (this=0x80596c0,

   filename=0x804ffe8 "fonts/font2.png") at kkengine/io/resources.cpp:59

#4  0x0804f54e in KKEngine::Resources::getFont(char*) (this=0x80596c0,

   filename=0x804ffe8 "fonts/font2.png") at kkengine/io/resources.cpp:70

#5  0x08049b5d in main (argc=1, argv=0xbffff974) at source/main.cpp:10

                               
#20
General Programadores / STL & Allocators
22 de Mayo de 2003, 05:53:11 PM
                                La libreria STL del C++ usa sus propios sistemas de manejo de memoria que ya estan optimizados (hay varios segun que se pueden usar segun la ocasion). Se usan para coger memoria para los items que se guardaran en las listas, arboles, etc... Y mi pregunta es, es posible utilizarlo en lugar del new del c++ (o del malloc). Mi intencion es que si el sistema de memoria del STL es mas rapido y esta mejor optimizado que el que trae el sistema de serie seria mejor usarlo (y asi no tengo que currarme yo mi propio sistema de gestion de memoria). The problem es que en la documentacion que tengo del STL solo especifica usarlo directamente en las listas, vectores, etc... y yo lo que quiero es poder crear una clase cualquiera suelta.

Espero haberme explicado bien  :P                                





Stratos es un servicio gratuito, cuyos costes se cubren en parte con la publicidad.
Por favor, desactiva el bloqueador de anuncios en esta web para ayudar a que siga adelante.
Muchísimas gracias.