Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-05 Thread Youness Alaoui

ok, thanks,
I didn't get an answer about how we could do it in case a packager  
compiles it for 8.4.11 and it gets executed on 8.4.5 for example...

should we leave that for all linux versions..???

KaKaRoTo

On Mon, 05 Dec 2005 05:40:25 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED] wrote:




Please, everyone try it and see that it works for you (Vivia) and I  
didn't

break others...


No, it crashes!!! :'(

Seems it doesn't understand the #ifdef _XLIB_H , so I removed it and it
works (supposing there are no other options than Linux, Mac and Win).


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-05 Thread Vivia Nikolaidou

 ok, thanks,
 I didn't get an answer about how we could do it in case a packager compiles it
 for 8.4.11 and it gets executed on 8.4.5 for example...
 should we leave that for all linux versions..???

Well, the code doesn't seem to do any damage, so I think it's safe to 
leave it!

 
 KaKaRoTo
 
 On Mon, 05 Dec 2005 05:40:25 -0500, Vivia Nikolaidou [EMAIL PROTECTED]
 wrote:
 
  
   Please, everyone try it and see that it works for you (Vivia) and I
   didn't
   break others...
  
  No, it crashes!!! :'(
  
  Seems it doesn't understand the #ifdef _XLIB_H , so I removed it and it
  works (supposing there are no other options than Linux, Mac and Win).
  
  
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
  files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
  ___
  Amsn-devel mailing list
  Amsn-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/amsn-devel
 
 
 
 -- 
 KaKaRoTo
 
 
 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel
 


---

Where is the life that we have lost in living?
 Where is the wisdom that we have lost in knowledge?
 Where is the knowledge that we have lost in information?

OEO;



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-05 Thread Youness Alaoui

yep, that's also my though...

KKRT

On Mon, 05 Dec 2005 08:57:56 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED] wrote:





ok, thanks,
I didn't get an answer about how we could do it in case a packager  
compiles it

for 8.4.11 and it gets executed on 8.4.5 for example...
should we leave that for all linux versions..???


Well, the code doesn't seem to do any damage, so I think it's safe to
leave it!



KaKaRoTo

On Mon, 05 Dec 2005 05:40:25 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED]

wrote:


  Please, everyone try it and see that it works for you (Vivia) and I
  didn't
  break others...

 No, it crashes!!! :'(

 Seems it doesn't understand the #ifdef _XLIB_H , so I removed it and  
it

 works (supposing there are no other options than Linux, Mac and Win).


 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD  
SPLUNK!

 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel



--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




---

Where is the life that we have lost in living?
 Where is the wisdom that we have lost in knowledge?
 Where is the knowledge that we have lost in information?

OEO;



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-05 Thread Vivia Nikolaidou

so here's the changed file :)

All I did was to remove #ifdef _XLIB_H , now it just needs testing on 
Windows and Mac...

On Mon, 5 Dec 2005, Youness Alaoui wrote:

 yep, that's also my though...
 
 KKRT
 
 On Mon, 05 Dec 2005 08:57:56 -0500, Vivia Nikolaidou [EMAIL PROTECTED]
 wrote:
 
  
   ok, thanks,
   I didn't get an answer about how we could do it in case a packager
   compiles it
   for 8.4.11 and it gets executed on 8.4.5 for example...
   should we leave that for all linux versions..???
  
  Well, the code doesn't seem to do any damage, so I think it's safe to
  leave it!
  
   
   KaKaRoTo
   
   On Mon, 05 Dec 2005 05:40:25 -0500, Vivia Nikolaidou
   [EMAIL PROTECTED]
   wrote:
   

 Please, everyone try it and see that it works for you
 (Vivia) and I
 didn't
 break others...

No, it crashes!!! :'(

Seems it doesn't understand the #ifdef _XLIB_H , so I removed it
and 
   it
works (supposing there are no other options than Linux, Mac and
Win).

   
   --
   KaKaRoTo
   /*
  File : TkCximage.cpp

  Description : Contains all functions for the Tk extension for the CxImage 
utility

  Author : Youness El Alaoui (KaKaRoTo - [EMAIL PROTECTED])
*/

#include TkCximage.h

static ChainedList animated_gifs;
Tk_ImageDisplayProc *PhotoDisplayOriginal=NULL;

/
// Functions to manage lists   //
/

ChainedIterator TkCxImage_lstGetListItem(list_element_type list_element_id) { 
//Get the iterator with the specified id

  ChainedIterator item;

  for( item = g_list.begin(); item != g_list.end()  (*item)-list_element_id 
!= list_element_id; item++);

  return item;

}


struct data_item* TkCxImage_lstAddItem(struct data_item* item) { //Add the 
specified item if its id not already exists

  if ( !item ) return NULL;
  if ( TkCxImage_lstGetListItem(item-list_element_id) != g_list.end() ) return 
NULL;

  g_list.push_back( item );

  return item;

}

struct data_item* TkCxImage_lstGetItem(list_element_type list_element_id) { 
//Get the item with the specified id

ChainedIterator listitem = TkCxImage_lstGetListItem( list_element_id );
if( listitem != g_list.end() )
return (*listitem);
else
return NULL;
}

struct data_item* TkCxImage_lstDeleteItem(list_element_type list_element_id) { 
//Delete the item with the specified id if exists

ChainedIterator item = TkCxImage_lstGetListItem( list_element_id );
struct data_item* element;

if( item != g_list.end() ) {
element = (*item);
g_list.erase( item );
return element;
}
else {
return NULL;
}

}


// TkCxImage code //


int ChanMatch (Tcl_Channel chan, CONST char *fileName, Tcl_Obj *format,int 
*widthPtr,
  int *heightPtr, Tcl_Interp *interp)
{
  CxImage image;

  LOG(Chanel matching); //
  LOG(Filename is); //
  APPENDLOG(fileName); //

  // Set escape to -1 to prevent decoding the image, but just return it's width 
and height
  //image.SetEscape(-1);

  if (image.Load(fileName, CXIMAGE_FORMAT_UNKNOWN)) {
*widthPtr = image.GetWidth();
*heightPtr = image.GetHeight();

LOG(Supported Format); //
LOG(Width :); //
APPENDLOG(*widthPtr); //
LOG(Heigth :); //
APPENDLOG(*heightPtr); //

return true;
  }

  return false;
}


int ObjMatch (Tcl_Obj *data, Tcl_Obj *format, int *widthPtr, int *heightPtr, 
Tcl_Interp *interp) {

  BYTE * buffer = NULL;
  int length = 0;

  CxImage image;

  LOG(Data matching); //

  buffer = Tcl_GetByteArrayFromObj(data, length);

  LOG(); //

  if (image.Decode(buffer, length, CXIMAGE_FORMAT_GIF) ||
  image.Decode(buffer, length, CXIMAGE_FORMAT_PNG) ||
  image.Decode(buffer, length, CXIMAGE_FORMAT_JPG) ||
  image.Decode(buffer, length, CXIMAGE_FORMAT_TGA) ||
  image.Decode(buffer, length, CXIMAGE_FORMAT_BMP)) {
*widthPtr = image.GetWidth();
*heightPtr = image.GetHeight();

LOG(Supported Format); //
LOG(Width :); //
APPENDLOG(*widthPtr); //
LOG(Heigth :); //
APPENDLOG(*heightPtr); //

return true;
  }

  LOG(Unknown format);

  return false;
}

int ChanRead (Tcl_Interp *interp, Tcl_Channel chan, CONST char *fileName, 
Tcl_Obj *format, Tk_PhotoHandle imageHandle,
 int destX, int destY, int width, int height, int srcX, int 
srcY)
{
Tcl_Obj *data = Tcl_NewObj();

Tcl_SetChannelOption(interp, chan, -encoding, binary);
Tcl_SetChannelOption(interp, chan, -translation, binary);

Tcl_ReadChars(chan, data, -1, 0);

LOG(Reading from file :); //
APPENDLOG(fileName); //

  return ObjRead(interp, data, format, imageHandle, destX, destY, width, 
height, srcX, srcY);

}

int ObjRead (Tcl_Interp *interp, Tcl_Obj *data, Tcl_Obj *format, Tk_PhotoHandle 

Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-05 Thread Youness Alaoui

I'm about to...

On Mon, 05 Dec 2005 12:12:06 -0500, Jérôme Gagnon-Voyer  
[EMAIL PROTECTED] wrote:



You will fix it?
Le 05-12-05 à 11:35, Youness Alaoui a écrit :


yep, that's also my though...

KKRT

On Mon, 05 Dec 2005 08:57:56 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED] wrote:





ok, thanks,
I didn't get an answer about how we could do it in case a packager  
compiles it

for 8.4.11 and it gets executed on 8.4.5 for example...
should we leave that for all linux versions..???


Well, the code doesn't seem to do any damage, so I think it's safe to
leave it!



KaKaRoTo

On Mon, 05 Dec 2005 05:40:25 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED]

wrote:


  Please, everyone try it and see that it works for you (Vivia) and  
I

  didn't
  break others...

 No, it crashes!!! :'(

 Seems it doesn't understand the #ifdef _XLIB_H , so I removed it  
and it
 works (supposing there are no other options than Linux, Mac and  
Win).



 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through  
log

 files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD  
SPLUNK!

 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel



--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through  
log files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD  
SPLUNK!

http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




---

Where is the life that we have lost in living?
 Where is the wisdom that we have lost in knowledge?
 Where is the knowledge that we have lost in information?

OEO;



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-05 Thread Karol Krizka
On Monday 05 December 2005 02:40, Vivia Nikolaidou wrote:
  Please, everyone try it and see that it works for you (Vivia) and I
  didn't break others...

 No, it crashes!!! :'(

 Seems it doesn't understand the #ifdef _XLIB_H , so I removed it and it
 works (supposing there are no other options than Linux, Mac and Win).

It should be _XLIB_H_

-- 
Karol Krizka


pgpzc9rGrncA1.pgp
Description: PGP signature


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-05 Thread Youness Alaoui
I have noone to test this, Vivia is already sleeping (2:30 AM now in  
Greece), and we won't wait until tomorrow for her to test if it does work  
with it or not...

I think that in any case, this is a safe fix, so we can keep it like that..
also :
grep XLIB_H */*
generic/tk.h:#ifndef _XLIB_H


tk uses _XLIB_H as define.. so I don't want to begin playing with a define  
and make it possible to not work... let's keep it this way...


KaKaRoTo

On Mon, 05 Dec 2005 18:53:32 -0500, Karol Krizka [EMAIL PROTECTED] wrote:


On Monday 05 December 2005 02:40, Vivia Nikolaidou wrote:

 Please, everyone try it and see that it works for you (Vivia) and I
 didn't break others...

No, it crashes!!! :'(

Seems it doesn't understand the #ifdef _XLIB_H , so I removed it and it
works (supposing there are no other options than Linux, Mac and Win).


It should be _XLIB_H_





--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Vivia Nikolaidou

 as Lee said, it's teamwork...

Exactly.
One of the best teamworks in my life, I have to admit, especially because 
it was a cyber-teamwork with people I didn't know before!

[...]
 You also found out that it happened only after oct 17th fixes.

Following your instructions, though! :)

 so, to sum it all, I'll quote Lee : great teamwork! :)

It was great how everyone was willing to help, and the cooperation also 
turned out to be perfect :)

Thanx A LOT to everyone! :)

Vivia

---

Where is the life that we have lost in living?
 Where is the wisdom that we have lost in knowledge?
 Where is the knowledge that we have lost in information?

OEO;




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Youness Alaoui

ok, ok, enough thank you-s... hehe

guys, I think my fix isn't finished!
who knows what the variable is, in order to know we're in X ? because I  
think my fix should be enclosed within an

#ifdef USING_X
XGetGeometry ...

#endif

because we'll have problems compiling for windows and mac...

when you found the define for it, can you please add it ? thanks

KaKaRoTo

On Sat, 03 Dec 2005 07:46:36 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED] wrote:





as Lee said, it's teamwork...


Exactly.
One of the best teamworks in my life, I have to admit, especially because
it was a cyber-teamwork with people I didn't know before!

[...]

You also found out that it happened only after oct 17th fixes.


Following your instructions, though! :)


so, to sum it all, I'll quote Lee : great teamwork! :)


It was great how everyone was willing to help, and the cooperation also
turned out to be perfect :)

Thanx A LOT to everyone! :)

Vivia

---

Where is the life that we have lost in living?
 Where is the wisdom that we have lost in knowledge?
 Where is the knowledge that we have lost in information?

OEO;




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Le Philousophe - Phil
Sorry to reopen the bug :p
I noticed some thing : XGetGeometry can be used under windows !!
Do you know that Tk exports wrapping to this function like many others for 
other systems than X11 ?
I will test that because it isn't clean to draw outer the bounds ;)
Too bad : I will have to go back to Windaube :s
Phil

Le Samedi 3 Décembre 2005 17:40, Karol Krizka a écrit :
 On Saturday 03 December 2005 07:34, Youness Alaoui wrote:
  ok, ok, enough thank you-s... hehe
 
  guys, I think my fix isn't finished!
  who knows what the variable is, in order to know we're in X ? because I
  think my fix should be enclosed within an
  #ifdef USING_X
  XGetGeometry ...
 
  #endif
 
  because we'll have problems compiling for windows and mac...
 
  when you found the define for it, can you please add it ? thanks

 There is X_PROTOCOL that contains the protocol version. I guess we could
 use that.



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Youness Alaoui
Yeah, I know they wrap X functions, but I don't want to use them, like for  
Mac, the XGetImage was a dummy function, with nothing inside... but I just  
want my code to work only for linux, because the dummy function for  
XGetGeometry might return 0 for width and height and then we can't do  
much
anyways, the bug is known to happen ONLY in linux, so if we don't touch  
the code for windows, then we're good...
ohh.. I just understood... you mean the X_PROTOCOL might be defined even  
for windows ??? ok.. find a better define then :S


KKRT

On Sat, 03 Dec 2005 14:51:33 -0500, Le Philousophe - Phil  
[EMAIL PROTECTED] wrote:



Sorry to reopen the bug :p
I noticed some thing : XGetGeometry can be used under windows !!
Do you know that Tk exports wrapping to this function like many others  
for

other systems than X11 ?
I will test that because it isn't clean to draw outer the bounds ;)
Too bad : I will have to go back to Windaube :s
Phil

Le Samedi 3 Décembre 2005 17:40, Karol Krizka a écrit :

On Saturday 03 December 2005 07:34, Youness Alaoui wrote:
 ok, ok, enough thank you-s... hehe

 guys, I think my fix isn't finished!
 who knows what the variable is, in order to know we're in X ? because  
I

 think my fix should be enclosed within an
 #ifdef USING_X
 XGetGeometry ...

 #endif

 because we'll have problems compiling for windows and mac...

 when you found the define for it, can you please add it ? thanks

There is X_PROTOCOL that contains the protocol version. I guess we could
use that.




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Harry Vennik
Maybe just test for Linux, instead of X then?
Or may it happen also on other *nix systems running X?

Op zaterdag 3 december 2005 21:13, schreef Youness Alaoui:
 Yeah, I know they wrap X functions, but I don't want to use them, like for
 Mac, the XGetImage was a dummy function, with nothing inside... but I just
 want my code to work only for linux, because the dummy function for
 XGetGeometry might return 0 for width and height and then we can't do
 much
 anyways, the bug is known to happen ONLY in linux, so if we don't touch
 the code for windows, then we're good...
 ohh.. I just understood... you mean the X_PROTOCOL might be defined even
 for windows ??? ok.. find a better define then :S

 KKRT

 On Sat, 03 Dec 2005 14:51:33 -0500, Le Philousophe - Phil

 [EMAIL PROTECTED] wrote:
  Sorry to reopen the bug :p
  I noticed some thing : XGetGeometry can be used under windows !!
  Do you know that Tk exports wrapping to this function like many others
  for
  other systems than X11 ?
  I will test that because it isn't clean to draw outer the bounds ;)
  Too bad : I will have to go back to Windaube :s
  Phil
 
  Le Samedi 3 Décembre 2005 17:40, Karol Krizka a écrit :
  On Saturday 03 December 2005 07:34, Youness Alaoui wrote:
   ok, ok, enough thank you-s... hehe
  
   guys, I think my fix isn't finished!
   who knows what the variable is, in order to know we're in X ? because
 
  I
 
   think my fix should be enclosed within an
   #ifdef USING_X
   XGetGeometry ...
  
   #endif
  
   because we'll have problems compiling for windows and mac...
  
   when you found the define for it, can you please add it ? thanks
 
  There is X_PROTOCOL that contains the protocol version. I guess we could
  use that.
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
  files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  http://ads.osdn.com/?ad_idv37alloc_id865op=click
  ___
  Amsn-devel mailing list
  Amsn-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/amsn-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Youness Alaoui
we support windows/mac/linux ... windows and mac, we're good, for linux,  
we have that patch, so let's just make the patch for linux only, we don't  
care about other *nix platforms, because we don't support them, and they  
have their own porters if there is a need for it.


KKRT

On Sat, 03 Dec 2005 15:22:01 -0500, Harry Vennik [EMAIL PROTECTED]  
wrote:



Maybe just test for Linux, instead of X then?
Or may it happen also on other *nix systems running X?

Op zaterdag 3 december 2005 21:13, schreef Youness Alaoui:
Yeah, I know they wrap X functions, but I don't want to use them, like  
for
Mac, the XGetImage was a dummy function, with nothing inside... but I  
just

want my code to work only for linux, because the dummy function for
XGetGeometry might return 0 for width and height and then we can't do
much
anyways, the bug is known to happen ONLY in linux, so if we don't touch
the code for windows, then we're good...
ohh.. I just understood... you mean the X_PROTOCOL might be defined even
for windows ??? ok.. find a better define then :S

KKRT

On Sat, 03 Dec 2005 14:51:33 -0500, Le Philousophe - Phil

[EMAIL PROTECTED] wrote:
 Sorry to reopen the bug :p
 I noticed some thing : XGetGeometry can be used under windows !!
 Do you know that Tk exports wrapping to this function like many others
 for
 other systems than X11 ?
 I will test that because it isn't clean to draw outer the bounds ;)
 Too bad : I will have to go back to Windaube :s
 Phil

 Le Samedi 3 Décembre 2005 17:40, Karol Krizka a écrit :
 On Saturday 03 December 2005 07:34, Youness Alaoui wrote:
  ok, ok, enough thank you-s... hehe
 
  guys, I think my fix isn't finished!
  who knows what the variable is, in order to know we're in X ?  
because


 I

  think my fix should be enclosed within an
  #ifdef USING_X
  XGetGeometry ...
 
  #endif
 
  because we'll have problems compiling for windows and mac...
 
  when you found the define for it, can you please add it ? thanks

 There is X_PROTOCOL that contains the protocol version. I guess we  
could

 use that.

 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD  
SPLUNK!

 http://ads.osdn.com/?ad_idv37alloc_id865op=click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Karol Krizka
On Saturday 03 December 2005 12:13, Youness Alaoui wrote:
 Yeah, I know they wrap X functions, but I don't want to use them, like for
 Mac, the XGetImage was a dummy function, with nothing inside... but I just
 want my code to work only for linux, because the dummy function for
 XGetGeometry might return 0 for width and height and then we can't do
 much
 anyways, the bug is known to happen ONLY in linux, so if we don't touch
 the code for windows, then we're good...
 ohh.. I just understood... you mean the X_PROTOCOL might be defined even
 for windows ??? ok.. find a better define then :S

Alright, how about:
#ifndef XGetGeometry_TCL_DECLARED

Tk seems to declare it whenever they make the function themselfs.

 KKRT

 On Sat, 03 Dec 2005 14:51:33 -0500, Le Philousophe - Phil

 [EMAIL PROTECTED] wrote:
  Sorry to reopen the bug :p
  I noticed some thing : XGetGeometry can be used under windows !!
  Do you know that Tk exports wrapping to this function like many others
  for
  other systems than X11 ?
  I will test that because it isn't clean to draw outer the bounds ;)
  Too bad : I will have to go back to Windaube :s
  Phil
 
  Le Samedi 3 Décembre 2005 17:40, Karol Krizka a écrit :
  On Saturday 03 December 2005 07:34, Youness Alaoui wrote:
   ok, ok, enough thank you-s... hehe
  
   guys, I think my fix isn't finished!
   who knows what the variable is, in order to know we're in X ? because
 
  I
 
   think my fix should be enclosed within an
   #ifdef USING_X
   XGetGeometry ...
  
   #endif
  
   because we'll have problems compiling for windows and mac...
  
   when you found the define for it, can you please add it ? thanks
 
  There is X_PROTOCOL that contains the protocol version. I guess we could
  use that.
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
  files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  http://ads.osdn.com/?ad_idv37alloc_id865op=click
  ___
  Amsn-devel mailing list
  Amsn-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/amsn-devel

-- 
Karol Krizka


pgp70QYvD7zis.pgp
Description: PGP signature


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Youness Alaoui
maybe you're right, but I didn't find that defined in the source... this  
is what I suggest :

#ifdef _XLIB_H
#ifndef MAC_TCL
#ifndef WIN32
#if TK_MAJOR_VERSION == 8  TK_MINOR_VERSION == 4  TK_RELEASE_SERIAL  9






KaKaRoTo

On Sat, 03 Dec 2005 16:47:21 -0500, Karol Krizka [EMAIL PROTECTED] wrote:


On Saturday 03 December 2005 12:13, Youness Alaoui wrote:
Yeah, I know they wrap X functions, but I don't want to use them, like  
for
Mac, the XGetImage was a dummy function, with nothing inside... but I  
just

want my code to work only for linux, because the dummy function for
XGetGeometry might return 0 for width and height and then we can't do
much
anyways, the bug is known to happen ONLY in linux, so if we don't touch
the code for windows, then we're good...
ohh.. I just understood... you mean the X_PROTOCOL might be defined even
for windows ??? ok.. find a better define then :S


Alright, how about:
#ifndef XGetGeometry_TCL_DECLARED

Tk seems to declare it whenever they make the function themselfs.


KKRT

On Sat, 03 Dec 2005 14:51:33 -0500, Le Philousophe - Phil

[EMAIL PROTECTED] wrote:
 Sorry to reopen the bug :p
 I noticed some thing : XGetGeometry can be used under windows !!
 Do you know that Tk exports wrapping to this function like many others
 for
 other systems than X11 ?
 I will test that because it isn't clean to draw outer the bounds ;)
 Too bad : I will have to go back to Windaube :s
 Phil

 Le Samedi 3 Décembre 2005 17:40, Karol Krizka a écrit :
 On Saturday 03 December 2005 07:34, Youness Alaoui wrote:
  ok, ok, enough thank you-s... hehe
 
  guys, I think my fix isn't finished!
  who knows what the variable is, in order to know we're in X ?  
because


 I

  think my fix should be enclosed within an
  #ifdef USING_X
  XGetGeometry ...
 
  #endif
 
  because we'll have problems compiling for windows and mac...
 
  when you found the define for it, can you please add it ? thanks

 There is X_PROTOCOL that contains the protocol version. I guess we  
could

 use that.

 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD  
SPLUNK!

 http://ads.osdn.com/?ad_idv37alloc_id865op=click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel






--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Sander Hoentjen
On Sat, 2005-12-03 at 18:38 -0500, Youness Alaoui wrote:
 maybe you're right, but I didn't find that defined in the source... this  
 is what I suggest :
 #ifdef _XLIB_H
 #ifndef MAC_TCL
 #ifndef WIN32
 #if TK_MAJOR_VERSION == 8  TK_MINOR_VERSION == 4  TK_RELEASE_SERIAL  9
 
I thought it happens in 8.4.9, so TK_RELEASE_SERIAL = 9 right?




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Youness Alaoui

nope, it was fixed in 8.4.9 it seems (from the code at least)

KKRT

On Sat, 03 Dec 2005 19:15:18 -0500, Sander Hoentjen [EMAIL PROTECTED]  
wrote:



On Sat, 2005-12-03 at 18:38 -0500, Youness Alaoui wrote:

maybe you're right, but I didn't find that defined in the source... this
is what I suggest :
#ifdef _XLIB_H
#ifndef MAC_TCL
#ifndef WIN32
#if TK_MAJOR_VERSION == 8  TK_MINOR_VERSION == 4  TK_RELEASE_SERIAL  
 9



I thought it happens in 8.4.9, so TK_RELEASE_SERIAL = 9 right?




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Youness Alaoui

I could, but I think my brain froze!!!

KaKaRoTo

On Sat, 03 Dec 2005 19:38:13 -0500, Karol Krizka [EMAIL PROTECTED] wrote:


On Saturday 03 December 2005 15:38, Youness Alaoui wrote:

maybe you're right, but I didn't find that defined in the source... this
is what I suggest :
#ifdef _XLIB_H
#ifndef MAC_TCL
#ifndef WIN32
#if TK_MAJOR_VERSION == 8  TK_MINOR_VERSION == 4  TK_RELEASE_SERIAL  
 9


They must have added those definitions in 8.5 only then because that's  
the
sources I was checking (had them already unpacked). Is anyone planning  
to add

this or should I?




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-03 Thread Youness Alaoui

ok, I did it, but I need you to test it...

Please, everyone try it and see that it works for you (Vivia) and I didn't  
break others...

can someone with tcl/tk 8.4.8 and tcl/tk 8.4.9 test it please ?
because from what I remember, someone had this problem with tcl/tk 8.4.9  
BUT the fix was already done in 8.4.9... so.. what's wrong ? anyways, I  
saw the fix in tk source code for 8.4.9.. so I need you to test, so I can  
make sure it's TK_RELEASE_SERIAL  9 and not TK_RELEASE_SERIAL = 9...
also, what would happen if the packager compiles it on 8.4.11 and the  
rpm-user has 8.4.8 ? do you think I should always keep it enable for this  
reason ? as long as we know the fix works and doesn't break anything even  
for working versions ??

or we can also do a
Tcl_EvalCommand(info patchLevel) and a Tcl_EvalCommand(set  
$::tcl_platform(os)) and programatically check for the conditions  
(instead of using defines...)


KaKaRoTo


On Sat, 03 Dec 2005 19:52:02 -0500, Youness Alaoui  
[EMAIL PROTECTED] wrote:



I could, but I think my brain froze!!!

KaKaRoTo

On Sat, 03 Dec 2005 19:38:13 -0500, Karol Krizka [EMAIL PROTECTED]  
wrote:



On Saturday 03 December 2005 15:38, Youness Alaoui wrote:
maybe you're right, but I didn't find that defined in the source...  
this

is what I suggest :
#ifdef _XLIB_H
#ifndef MAC_TCL
#ifndef WIN32
#if TK_MAJOR_VERSION == 8  TK_MINOR_VERSION == 4   
TK_RELEASE_SERIAL  9


They must have added those definitions in 8.5 only then because that's  
the
sources I was checking (had them already unpacked). Is anyone planning  
to add

this or should I?








--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Vivia Nikolaidou

 #8  0x40058755 in TkpDisplayButton () from /usr/lib/libtk8.4.so

It is actually the send button. I enabled the standard grey flat button 
in chatwindow.tcl and increased the -width argument (but I mean REALLY 
increase it, had to set it to 60) and it is stable! I just get a funny 
huge button that turns normal again when I hover it :) but at least, no 
crashes.

I will keep experimenting, but since I am hacking an unknown code in an 
unknown language, I'd appreciate it if someone else gave it a try :)

Vivia


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Youness Alaoui

Phil,
can you please look into that ?
An idea would also be to look at the diff in the Tk_CreatePhotoImageFormat  
proc in tk's CVS and look for any bugfix-patch applied for 8.4.11.. that  
may be a hassle though..


Thanks,
KaKaRoTo

On Thu, 01 Dec 2005 17:15:53 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED] wrote:




#5  0x400b08b4 in Tk_CreatePhotoImageFormat () from /usr/lib/libtk8.4.so
No symbol table info available.
#6  0x4041e47d in PhotoDisplayProcHook ()
   from /usr/local/msn/utils/TkCximage/TkCximage.so
No symbol table info available.
#7  0x400a7edf in Tk_RedrawImage () from /usr/lib/libtk8.4.so
No symbol table info available.
#8  0x40058755 in TkpDisplayButton () from /usr/lib/libtk8.4.so
No symbol table info available.




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Jérôme Gagnon-Voyer
Many questions..-Do you still crash if you change::skin::loadPixmap sendbutton for::skin::loadPixmapsendbutton_hoverinside 	# New pixmap-skinnable button (For Windows and Unix  Tcl/Tk 8.3)If YES:Replace the sendbutton by: button $sendbutton -image [::skin::loadPixmap sendbutton] \-command "::amsn::MessageSend $w $text" \(I removed all options except command and image).Do you have the problem with ALL skins? Including Default skin.Le 05-12-02 à 09:01, Vivia Nikolaidou a écrit :It is actually the send button. I enabled the "standard grey flat button"  in chatwindow.tcl and increased the -width argument (but I mean REALLY  increase it, had to set it to 60) and it is stable! I just get a funny  huge button that turns normal again when I hover it :) but at least, no  crashes.  I will keep experimenting, but since I am hacking an unknown code in an  unknown language, I'd appreciate it if someone else gave it a try :) 

Re: [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Le Philousophe - Phil
Hi,
I don't think the trouble is in Tk_CreatePhotoImageFormat() because why does 
TkCxImage call it in PhotoDisplayProcHook() ???
In addition why Tk_CreatePhotoImageFormat() calls XGetImage ???
The trouble seems to come from ImgPhotoDisplay !!
Well but how can I fix that ??? Using XGetGeometry ?? But I will break the 
compatibility with windows...
In addition I took a look at the CVS of Tk :
There is only 1 change between 8.4.9 and 8.4.10 and nothing about our bug...
And the 8.4.11 version is the same as the 8.4.10 one... Very strange...
Anyway I will try to see...
Phil

Le Vendredi 2 Décembre 2005 17:35, Youness Alaoui a écrit :
 Phil,
 can you please look into that ?
 An idea would also be to look at the diff in the Tk_CreatePhotoImageFormat
 proc in tk's CVS and look for any bugfix-patch applied for 8.4.11.. that
 may be a hassle though..

 Thanks,
 KaKaRoTo

 On Thu, 01 Dec 2005 17:15:53 -0500, Vivia Nikolaidou

 [EMAIL PROTECTED] wrote:
  #5  0x400b08b4 in Tk_CreatePhotoImageFormat () from /usr/lib/libtk8.4.so
  No symbol table info available.
  #6  0x4041e47d in PhotoDisplayProcHook ()
 from /usr/local/msn/utils/TkCximage/TkCximage.so
  No symbol table info available.
  #7  0x400a7edf in Tk_RedrawImage () from /usr/lib/libtk8.4.so
  No symbol table info available.
  #8  0x40058755 in TkpDisplayButton () from /usr/lib/libtk8.4.so
  No symbol table info available.



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Le Philousophe - Phil
Here is the bug, in tcl/tk bug tracker 
http://sourceforge.net/tracker/index.php?func=detailaid=979239group_id=12997atid=112997
Phil

Le Vendredi 2 Décembre 2005 21:02, Le Philousophe - Phil a écrit :
 Hi,
 I don't think the trouble is in Tk_CreatePhotoImageFormat() because why
 does TkCxImage call it in PhotoDisplayProcHook() ???
 In addition why Tk_CreatePhotoImageFormat() calls XGetImage ???
 The trouble seems to come from ImgPhotoDisplay !!
 Well but how can I fix that ??? Using XGetGeometry ?? But I will break the
 compatibility with windows...
 In addition I took a look at the CVS of Tk :
 There is only 1 change between 8.4.9 and 8.4.10 and nothing about our
 bug... And the 8.4.11 version is the same as the 8.4.10 one... Very
 strange... Anyway I will try to see...
 Phil

 Le Vendredi 2 Décembre 2005 17:35, Youness Alaoui a écrit :
  Phil,
  can you please look into that ?
  An idea would also be to look at the diff in the
  Tk_CreatePhotoImageFormat proc in tk's CVS and look for any bugfix-patch
  applied for 8.4.11.. that may be a hassle though..
 
  Thanks,
  KaKaRoTo
 
  On Thu, 01 Dec 2005 17:15:53 -0500, Vivia Nikolaidou
 
  [EMAIL PROTECTED] wrote:
   #5  0x400b08b4 in Tk_CreatePhotoImageFormat () from
   /usr/lib/libtk8.4.so No symbol table info available.
   #6  0x4041e47d in PhotoDisplayProcHook ()
  from /usr/local/msn/utils/TkCximage/TkCximage.so
   No symbol table info available.
   #7  0x400a7edf in Tk_RedrawImage () from /usr/lib/libtk8.4.so
   No symbol table info available.
   #8  0x40058755 in TkpDisplayButton () from /usr/lib/libtk8.4.so
   No symbol table info available.

 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://ads.osdn.com/?ad_idv37alloc_id865op=Click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Vivia Nikolaidou

 -Do you still crash if you change
 : : skin::loadPixmap sendbutton
 for
 : : skin::loadPixmapsendbutton_hover
 inside# New pixmap-skinnable button (For Windows and Unix  Tcl/Tk 
 8.3)

Yes, I still crash.

 If YES:
 Replace the sendbutton by:
 button $sendbutton -image [::skin::loadPixmap sendbutton] \
   -command ::amsn::MessageSend $w $text \

Still crashes :(

 Do you have the problem with ALL skins? Including Default skin.

I haven't tried them ALL one by one, but I haven't found any skins that 
don't crash. And, yes, default crashes.

Thanx for your interest, and hope this was helpful...,

Vivia


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Jérôme Gagnon-Voyer

Ok try that instead

label $sendbutton -image [::skin::loadPixmap 
sendbutton] \
-fg black -bg [::skin::getKey sendbuttonbg] -bd 
0 -relief flat \
-activebackground [::skin::getKey sendbuttonbg] -activeforeground  
black -text [trans send] \
-font sboldf -highlightthickness 0 -pady 0 -padx 0 -relief flat - 
compound center

bind $sendbutton Button1 ::amsn::MessageSend $w 
$text
Thanks for your help

Le 05-12-02 à 16:44, Vivia Nikolaidou a écrit :




-Do you still crash if you change
: : skin::loadPixmap sendbutton
for
: : skin::loadPixmapsendbutton_hover
inside 	# New pixmap-skinnable button (For Windows and Unix  Tcl/ 
Tk 8.3)


Yes, I still crash.


If YES:
Replace the sendbutton by:
button $sendbutton -image [::skin::loadPixmap sendbutton] \
-command ::amsn::MessageSend $w $text \


Still crashes :(


Do you have the problem with ALL skins? Including Default skin.


I haven't tried them ALL one by one, but I haven't found any skins  
that

don't crash. And, yes, default crashes.

Thanx for your interest, and hope this was helpful...,

Vivia


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through  
log files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD  
SPLUNK!

http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Youness Alaoui

I think I almost got it!!!
wait for me...

On Fri, 02 Dec 2005 19:15:45 -0500, Jérôme Gagnon-Voyer  
[EMAIL PROTECTED] wrote:



Ok try that instead

label $sendbutton -image [::skin::loadPixmap 
sendbutton] \
-fg black -bg [::skin::getKey sendbuttonbg] -bd 
0 -relief flat \
-activebackground [::skin::getKey sendbuttonbg] -activeforeground  
black -text [trans send] \
-font sboldf -highlightthickness 0 -pady 0 -padx 0 -relief flat - 
compound center

bind $sendbutton Button1 ::amsn::MessageSend $w 
$text
Thanks for your help

Le 05-12-02 à 16:44, Vivia Nikolaidou a écrit :




-Do you still crash if you change
: : skin::loadPixmap sendbutton
for
: : skin::loadPixmapsendbutton_hover
inside 	# New pixmap-skinnable button (For Windows and Unix  Tcl/Tk  
8.3)


Yes, I still crash.


If YES:
Replace the sendbutton by:
button $sendbutton -image [::skin::loadPixmap sendbutton] \
-command ::amsn::MessageSend $w $text \


Still crashes :(


Do you have the problem with ALL skins? Including Default skin.


I haven't tried them ALL one by one, but I haven't found any skins that
don't crash. And, yes, default crashes.

Thanx for your interest, and hope this was helpful...,

Vivia


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Vivia Nikolaidou

 Hmm...So you say that when you use the GREY FLAT button you don't crash?
 That's the ONLY thing you change?

No, I also have to set its width to like 60 or something (yes it IS 
huge)...

The code below doesn't work either :(

 Try that:
 label $sendbutton -image  [::skin::loadPixmap
 butfont]\
 -fg black -bg [::skin::getKey sendbuttonbg]
 -bd 0 -relief flat \
 -activebackground [::skin::getKey
 sendbuttonbg] -activeforeground 
 black -text [trans send] \
   -font sboldf -highlightthickness 0 -pady 0
 -padx 0 -relief flat -compound center
   bind $sendbutton Button1 ::amsn::MessageSend $w
 $text
 This is VERY VERY VERY similar to a normal button in the chatwindow, same
 picture, same command(label), don't tell me it crashed or I won't beleive you.
 
 
 Le 05-12-02 à 19:34, Vivia Nikolaidou a écrit :
 
  
  That crashes too... :(
  
  It also crashes with the sheeny-deluxe skin (Awesome skin though!!
  Congrats)
  
  On Fri, 2 Dec 2005, Jérôme Gagnon-Voyer wrote:
  
   Ok try that instead
   
   label $sendbutton -image [::skin::loadPixmap
   sendbutton] \
   -fg black -bg [::skin::getKey sendbuttonbg]
   -bd 0 -relief flat \
   -activebackground [::skin::getKey
   sendbuttonbg] -activeforeground
   black -text [trans send] \
 -font sboldf -highlightthickness 0
   -pady 0
   -padx 0 -relief flat -compound center
 bind $sendbutton Button1
   ::amsn::MessageSend $w
   $text
   Thanks for your help
   
   Le 05-12-02 à 16:44, Vivia Nikolaidou a écrit :
   

 -Do you still crash if you change
 : : skin::loadPixmap sendbutton
 for
 : : skin::loadPixmapsendbutton_hover
 inside# New pixmap-skinnable button (For Windows and
 Unix 
 Tcl/Tk 8.3)

Yes, I still crash.

 If YES:
 Replace the sendbutton by:
 button $sendbutton -image [::skin::loadPixmap sendbutton] \
 -command ::amsn::MessageSend $w $text
 \

Still crashes :(

 Do you have the problem with ALL skins? Including Default
 skin.

I haven't tried them ALL one by one, but I haven't found any
skins that
don't crash. And, yes, default crashes.

Thanx for your interest, and hope this was helpful...,

Vivia


---
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log
files
for problems?  Stop!  Download the new AJAX search engine that
makes
searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel
   
   
   
   ---
   This SF.net email is sponsored by: Splunk Inc. Do you grep through
   log files
   for problems?  Stop!  Download the new AJAX search engine that makes
   searching your log files as easy as surfing the  web.  DOWNLOAD
   SPLUNK!
   http://ads.osdn.com/?ad_idv37alloc_id865opÌk
   ___
   Amsn-devel mailing list
   Amsn-devel@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/amsn-devel
   
   
  
  
  ---
  
  Where is the life that we have lost in living?
  Where is the wisdom that we have lost in knowledge?
  Where is the knowledge that we have lost in information?
  
  OEO;
 
 
 
 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://ads.osdn.com/?ad_idv37alloc_id865opÌk
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel
 
 


---

Where is the life that we have lost in living?
 Where is the wisdom that we have lost in knowledge?
 Where is the knowledge that we have lost in information?

OEO;


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Jérôme Gagnon-Voyer
If it's not width 60,it crashes?Like 10, it crashes?Le 05-12-02 à 19:45, Vivia Nikolaidou a écrit : No, I also have to set its width to like 60 or something (yes it IS  huge)...  The code below doesn't work either :( 

Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Vivia Nikolaidou

 If it's not width 60,it crashes?
 
 Like 10, it crashes?

Yes, it crashes for up to 50 or something...


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Youness Alaoui
Yes, the problem is in the width/heigh of the button, as well as in its  
alpha components...
What happens is that when you have complex Alpha, Tk has to ask X to give  
it the drawable image behind the pixmap to write in order to blend it  
correctly.. so it calls XGetImage...

problem is that we get a BadMatch error, from Xlib docs :
If the drawable is a pixmap, the given rectangle must be wholly contained  
within the pixmap, or a BadMatch error results.
This means that we have a pixmap and we request give me the image at this  
rectangle's coordinates, specifying X, Y, width and height..
problem is that X and Y might be  0 AND, the width and height might be  
bigger than the width/heigh of the background...
I think it's because the button code from Tk, when it's a Tk_Width and  
Tk_Height, returns the width and height of the parent window, so we ask  
for a huge width and height, (and negative X/Y) which gets outside of the  
border of the drawable background image.. so X returns a BadMatch error in  
order to say hey, you're outside of the border...

Now, the solution ...
HEY, Vivia said that it worked!!! wouhou, I fixed it :D
I'm going to commit it soon :)
let me clean the code and comment the fix, then I'll commit.

the solution was to call XGetGeometry, get the visible width and heigh of  
the drawable BEFORE calling the XGetImage, and make sure the x/y are = 0  
and width/height are  1 and  the real width/height returned by  
XGetGeometry...

Thanks to all who helped.

KaKaRoTo

On Fri, 02 Dec 2005 19:45:15 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED] wrote:





Hmm...So you say that when you use the GREY FLAT button you don't crash?
That's the ONLY thing you change?


No, I also have to set its width to like 60 or something (yes it IS
huge)...

The code below doesn't work either :(


Try that:
label $sendbutton -image  [::skin::loadPixmap
butfont]\
-fg black -bg [::skin::getKey sendbuttonbg]
-bd 0 -relief flat \
-activebackground [::skin::getKey
sendbuttonbg] -activeforeground
black -text [trans send] \
-font sboldf -highlightthickness 0 -pady 0
-padx 0 -relief flat -compound center
bind $sendbutton Button1 ::amsn::MessageSend $w
$text
This is VERY VERY VERY similar to a normal button in the chatwindow,  
same
picture, same command(label), don't tell me it crashed or I won't  
beleive you.



Le 05-12-02 à 19:34, Vivia Nikolaidou a écrit :


 That crashes too... :(

 It also crashes with the sheeny-deluxe skin (Awesome skin though!!
 Congrats)

 On Fri, 2 Dec 2005, Jérôme Gagnon-Voyer wrote:

  Ok try that instead
 
  label $sendbutton -image [::skin::loadPixmap
  sendbutton] \
  -fg black -bg [::skin::getKey sendbuttonbg]
  -bd 0 -relief flat \
  -activebackground [::skin::getKey
  sendbuttonbg] -activeforeground
  black -text [trans send] \
-font sboldf -highlightthickness 0
  -pady 0
  -padx 0 -relief flat -compound center
bind $sendbutton Button1
  ::amsn::MessageSend $w
  $text
  Thanks for your help
 
  Le 05-12-02 à 16:44, Vivia Nikolaidou a écrit :
 
  
-Do you still crash if you change
: : skin::loadPixmap sendbutton
for
: : skin::loadPixmapsendbutton_hover
inside  # New pixmap-skinnable button (For Windows and
Unix 
Tcl/Tk 8.3)
  
   Yes, I still crash.
  
If YES:
Replace the sendbutton by:
button $sendbutton -image [::skin::loadPixmap sendbutton] \
-command ::amsn::MessageSend $w $text
\
  
   Still crashes :(
  
Do you have the problem with ALL skins? Including Default
skin.
  
   I haven't tried them ALL one by one, but I haven't found any
   skins that
   don't crash. And, yes, default crashes.
  
   Thanx for your interest, and hope this was helpful...,
  
   Vivia
  
  
   ---
   This SF.net email is sponsored by: Splunk Inc. Do you grep
   through log
   files
   for problems?  Stop!  Download the new AJAX search engine that
   makes
   searching your log files as easy as surfing the  web.  DOWNLOAD
   SPLUNK!
   http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
   ___
   Amsn-devel mailing list
   Amsn-devel@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/amsn-devel
 
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through
  log files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD
  SPLUNK!
  http://ads.osdn.com/?ad_idv37alloc_id865opÌk
  ___
  Amsn-devel mailing list
  Amsn-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/amsn-devel
 
 


 ---

 Where is the life that we have lost in living?
 Where is the wisdom that we have lost in knowledge?
 Where is the 

Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Lee Olson
Good teamwork ;-)

~Lee

On 12/2/05, Youness Alaoui [EMAIL PROTECTED] wrote:
 Yes, the problem is in the width/heigh of the button, as well as in its
 alpha components...
 What happens is that when you have complex Alpha, Tk has to ask X to give
 it the drawable image behind the pixmap to write in order to blend it
 correctly.. so it calls XGetImage...
 problem is that we get a BadMatch error, from Xlib docs :
 If the drawable is a pixmap, the given rectangle must be wholly contained
 within the pixmap, or a BadMatch error results.
 This means that we have a pixmap and we request give me the image at this
 rectangle's coordinates, specifying X, Y, width and height..
 problem is that X and Y might be  0 AND, the width and height might be
 bigger than the width/heigh of the background...
 I think it's because the button code from Tk, when it's a Tk_Width and
 Tk_Height, returns the width and height of the parent window, so we ask
 for a huge width and height, (and negative X/Y) which gets outside of the
 border of the drawable background image.. so X returns a BadMatch error in
 order to say hey, you're outside of the border...
 Now, the solution ...
 HEY, Vivia said that it worked!!! wouhou, I fixed it :D
 I'm going to commit it soon :)
 let me clean the code and comment the fix, then I'll commit.

 the solution was to call XGetGeometry, get the visible width and heigh of
 the drawable BEFORE calling the XGetImage, and make sure the x/y are = 0
 and width/height are  1 and  the real width/height returned by
 XGetGeometry...
 Thanks to all who helped.

 KaKaRoTo

 On Fri, 02 Dec 2005 19:45:15 -0500, Vivia Nikolaidou
 [EMAIL PROTECTED] wrote:

 
  Hmm...So you say that when you use the GREY FLAT button you don't crash?
  That's the ONLY thing you change?
 
  No, I also have to set its width to like 60 or something (yes it IS
  huge)...
 
  The code below doesn't work either :(
 
  Try that:
  label $sendbutton -image  [::skin::loadPixmap
  butfont]\
  -fg black -bg [::skin::getKey sendbuttonbg]
  -bd 0 -relief flat \
  -activebackground [::skin::getKey
  sendbuttonbg] -activeforeground
  black -text [trans send] \
   -font sboldf -highlightthickness 0 -pady 0
  -padx 0 -relief flat -compound center
   bind $sendbutton Button1 ::amsn::MessageSend $w
  $text
  This is VERY VERY VERY similar to a normal button in the chatwindow,
  same
  picture, same command(label), don't tell me it crashed or I won't
  beleive you.
 
 
  Le 05-12-02 à 19:34, Vivia Nikolaidou a écrit :
 
  
   That crashes too... :(
  
   It also crashes with the sheeny-deluxe skin (Awesome skin though!!
   Congrats)
  
   On Fri, 2 Dec 2005, Jérôme Gagnon-Voyer wrote:
  
Ok try that instead
   
label $sendbutton -image [::skin::loadPixmap
sendbutton] \
-fg black -bg [::skin::getKey sendbuttonbg]
-bd 0 -relief flat \
-activebackground [::skin::getKey
sendbuttonbg] -activeforeground
black -text [trans send] \
 -font sboldf -highlightthickness 0
-pady 0
-padx 0 -relief flat -compound center
 bind $sendbutton Button1
::amsn::MessageSend $w
$text
Thanks for your help
   
Le 05-12-02 à 16:44, Vivia Nikolaidou a écrit :
   

  -Do you still crash if you change
  : : skin::loadPixmap sendbutton
  for
  : : skin::loadPixmapsendbutton_hover
  inside   # New pixmap-skinnable button (For Windows and
  Unix 
  Tcl/Tk 8.3)

 Yes, I still crash.

  If YES:
  Replace the sendbutton by:
  button $sendbutton -image [::skin::loadPixmap sendbutton] \
  -command ::amsn::MessageSend $w $text
  \

 Still crashes :(

  Do you have the problem with ALL skins? Including Default
  skin.

 I haven't tried them ALL one by one, but I haven't found any
 skins that
 don't crash. And, yes, default crashes.

 Thanx for your interest, and hope this was helpful...,

 Vivia


 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep
 through log
 files
 for problems?  Stop!  Download the new AJAX search engine that
 makes
 searching your log files as easy as surfing the  web.  DOWNLOAD
 SPLUNK!
 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel
   
   
   
---
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865opÌk

Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Youness Alaoui

Vivia's been a great help!
A big Thanks goes to her.

KaKaRoTo

On Fri, 02 Dec 2005 20:01:12 -0500, Lee Olson [EMAIL PROTECTED] wrote:


Good teamwork ;-)

~Lee

On 12/2/05, Youness Alaoui [EMAIL PROTECTED] wrote:

Yes, the problem is in the width/heigh of the button, as well as in its
alpha components...
What happens is that when you have complex Alpha, Tk has to ask X to  
give

it the drawable image behind the pixmap to write in order to blend it
correctly.. so it calls XGetImage...
problem is that we get a BadMatch error, from Xlib docs :
If the drawable is a pixmap, the given rectangle must be wholly  
contained

within the pixmap, or a BadMatch error results.
This means that we have a pixmap and we request give me the image at  
this

rectangle's coordinates, specifying X, Y, width and height..
problem is that X and Y might be  0 AND, the width and height might be
bigger than the width/heigh of the background...
I think it's because the button code from Tk, when it's a Tk_Width and
Tk_Height, returns the width and height of the parent window, so we ask
for a huge width and height, (and negative X/Y) which gets outside of  
the
border of the drawable background image.. so X returns a BadMatch error  
in

order to say hey, you're outside of the border...
Now, the solution ...
HEY, Vivia said that it worked!!! wouhou, I fixed it :D
I'm going to commit it soon :)
let me clean the code and comment the fix, then I'll commit.

the solution was to call XGetGeometry, get the visible width and heigh  
of
the drawable BEFORE calling the XGetImage, and make sure the x/y are =  
0

and width/height are  1 and  the real width/height returned by
XGetGeometry...
Thanks to all who helped.

KaKaRoTo

On Fri, 02 Dec 2005 19:45:15 -0500, Vivia Nikolaidou
[EMAIL PROTECTED] wrote:


 Hmm...So you say that when you use the GREY FLAT button you don't  
crash?

 That's the ONLY thing you change?

 No, I also have to set its width to like 60 or something (yes it IS
 huge)...

 The code below doesn't work either :(

 Try that:
 label $sendbutton -image  [::skin::loadPixmap
 butfont]\
 -fg black -bg [::skin::getKey sendbuttonbg]
 -bd 0 -relief flat \
 -activebackground [::skin::getKey
 sendbuttonbg] -activeforeground
 black -text [trans send] \
  -font sboldf -highlightthickness 0  
-pady 0

 -padx 0 -relief flat -compound center
  bind $sendbutton Button1  
::amsn::MessageSend $w

 $text
 This is VERY VERY VERY similar to a normal button in the chatwindow,
 same
 picture, same command(label), don't tell me it crashed or I won't
 beleive you.


 Le 05-12-02 à 19:34, Vivia Nikolaidou a écrit :

 
  That crashes too... :(
 
  It also crashes with the sheeny-deluxe skin (Awesome skin though!!
  Congrats)
 
  On Fri, 2 Dec 2005, Jérôme Gagnon-Voyer wrote:
 
   Ok try that instead
  
   label $sendbutton -image [::skin::loadPixmap
   sendbutton] \
   -fg black -bg [::skin::getKey sendbuttonbg]
   -bd 0 -relief flat \
   -activebackground [::skin::getKey
   sendbuttonbg] -activeforeground
   black -text [trans send] \
-font sboldf -highlightthickness 0
   -pady 0
   -padx 0 -relief flat -compound center
bind $sendbutton Button1
   ::amsn::MessageSend $w
   $text
   Thanks for your help
  
   Le 05-12-02 à 16:44, Vivia Nikolaidou a écrit :
  
   
 -Do you still crash if you change
 : : skin::loadPixmap sendbutton
 for
 : : skin::loadPixmapsendbutton_hover
 inside   # New pixmap-skinnable button (For Windows and
 Unix 
 Tcl/Tk 8.3)
   
Yes, I still crash.
   
 If YES:
 Replace the sendbutton by:
 button $sendbutton -image [::skin::loadPixmap sendbutton] \
 -command ::amsn::MessageSend $w $text
 \
   
Still crashes :(
   
 Do you have the problem with ALL skins? Including Default
 skin.
   
I haven't tried them ALL one by one, but I haven't found any
skins that
don't crash. And, yes, default crashes.
   
Thanx for your interest, and hope this was helpful...,
   
Vivia
   
   
---
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log
files
for problems?  Stop!  Download the new AJAX search engine that
makes
searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel
  
  
  
   ---
   This SF.net email is sponsored by: Splunk Inc. Do you grep  
through

   log files
   for problems?  Stop!  Download the new AJAX search engine that  
makes

   searching your log files as easy as surfing the  web.  DOWNLOAD
   SPLUNK!
   

Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Jérôme Gagnon-Voyer

Her?


Wow, first girl on the dev list!
Le 05-12-02 à 20:07, Youness Alaoui a écrit :


Vivia's been a great help!
A big Thanks goes to her.

KaKaRoTo

On Fri, 02 Dec 2005 20:01:12 -0500, Lee Olson  
[EMAIL PROTECTED] wrote:



Good teamwork ;-)

~Lee

On 12/2/05, Youness Alaoui [EMAIL PROTECTED] wrote:
Yes, the problem is in the width/heigh of the button, as well as  
in its

alpha components...
What happens is that when you have complex Alpha, Tk has to ask X  
to give
it the drawable image behind the pixmap to write in order to  
blend it

correctly.. so it calls XGetImage...
problem is that we get a BadMatch error, from Xlib docs :
If the drawable is a pixmap, the given rectangle must be wholly  
contained

within the pixmap, or a BadMatch error results.
This means that we have a pixmap and we request give me the  
image at this

rectangle's coordinates, specifying X, Y, width and height..
problem is that X and Y might be  0 AND, the width and height  
might be

bigger than the width/heigh of the background...
I think it's because the button code from Tk, when it's a  
Tk_Width and
Tk_Height, returns the width and height of the parent window, so  
we ask
for a huge width and height, (and negative X/Y) which gets  
outside of the
border of the drawable background image.. so X returns a BadMatch  
error in

order to say hey, you're outside of the border...
Now, the solution ...
HEY, Vivia said that it worked!!! wouhou, I fixed it :D
I'm going to commit it soon :)
let me clean the code and comment the fix, then I'll commit.

the solution was to call XGetGeometry, get the visible width and  
heigh of
the drawable BEFORE calling the XGetImage, and make sure the x/y  
are = 0

and width/height are  1 and  the real width/height returned by
XGetGeometry...
Thanks to all who helped.

KaKaRoTo

On Fri, 02 Dec 2005 19:45:15 -0500, Vivia Nikolaidou
[EMAIL PROTECTED] wrote:


 Hmm...So you say that when you use the GREY FLAT button you  
don't crash?

 That's the ONLY thing you change?

 No, I also have to set its width to like 60 or something (yes  
it IS

 huge)...

 The code below doesn't work either :(

 Try that:
 label $sendbutton -image  [::skin::loadPixmap
 butfont]\
 -fg black -bg [::skin::getKey sendbuttonbg]
 -bd 0 -relief flat \
 -activebackground [::skin::getKey
 sendbuttonbg] -activeforeground
 black -text [trans send] \
  -font sboldf -highlightthickness  
0 -pady 0

 -padx 0 -relief flat -compound center
  bind $sendbutton Button1  
::amsn::MessageSend $w

 $text
 This is VERY VERY VERY similar to a normal button in the  
chatwindow,

 same
 picture, same command(label), don't tell me it crashed or I won't
 beleive you.


 Le 05-12-02 à 19:34, Vivia Nikolaidou a écrit :

 
  That crashes too... :(
 
  It also crashes with the sheeny-deluxe skin (Awesome skin  
though!!

  Congrats)
 
  On Fri, 2 Dec 2005, Jérôme Gagnon-Voyer wrote:
 
   Ok try that instead
  
   label $sendbutton -image [::skin::loadPixmap
   sendbutton] \
   -fg black -bg [::skin::getKey sendbuttonbg]
   -bd 0 -relief flat \
   -activebackground [::skin::getKey
   sendbuttonbg] -activeforeground
   black -text [trans send] \
-font sboldf -highlightthickness 0
   -pady 0
   -padx 0 -relief flat -compound center
bind $sendbutton Button1
   ::amsn::MessageSend $w
   $text
   Thanks for your help
  
   Le 05-12-02 à 16:44, Vivia Nikolaidou a écrit :
  
   
 -Do you still crash if you change
 : : skin::loadPixmap sendbutton
 for
 : : skin::loadPixmapsendbutton_hover
 inside   # New pixmap-skinnable button (For  
Windows and

 Unix 
 Tcl/Tk 8.3)
   
Yes, I still crash.
   
 If YES:
 Replace the sendbutton by:
 button $sendbutton -image [::skin::loadPixmap  
sendbutton] \

 -command ::amsn::MessageSend $w $text
 \
   
Still crashes :(
   
 Do you have the problem with ALL skins? Including Default
 skin.
   
I haven't tried them ALL one by one, but I haven't found  
any

skins that
don't crash. And, yes, default crashes.
   
Thanx for your interest, and hope this was helpful...,
   
Vivia
   
   
---
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log
files
for problems?  Stop!  Download the new AJAX search  
engine that

makes
searching your log files as easy as surfing the  web.   
DOWNLOAD

SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel
  
  
  
   ---
   This SF.net email is sponsored by: Splunk Inc. Do you grep  
through

   log files
   for problems?  Stop!  Download the new AJAX search engine  
that makes
 

Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Vivia Nikolaidou

On Fri, 2 Dec 2005, Youness Alaoui wrote:

 Vivia's been a great help!
 A big Thanks goes to her.

Yes, you spotted the mistake immediately, wrote the code to correct it 
within dt, and then *I* have been a great help? :)

A huge Thanks to you!!! :)


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Youness Alaoui

loool,
yeah, I told her the same thing!!
do you think she deserves a place in our CREDITS file for being the first  
girl that got involved with us ?
I think it would be nice, but I don't know if everyone would be ok with  
it, Vivia, your thoughts ? ;)


KaKaRoTo

On Fri, 02 Dec 2005 20:09:01 -0500, Jérôme Gagnon-Voyer  
[EMAIL PROTECTED] wrote:



Her?


Wow, first girl on the dev list!
Le 05-12-02 à 20:07, Youness Alaoui a écrit :


Vivia's been a great help!
A big Thanks goes to her.

KaKaRoTo

On Fri, 02 Dec 2005 20:01:12 -0500, Lee Olson [EMAIL PROTECTED]  
wrote:



Good teamwork ;-)

~Lee

On 12/2/05, Youness Alaoui [EMAIL PROTECTED] wrote:
Yes, the problem is in the width/heigh of the button, as well as in  
its

alpha components...
What happens is that when you have complex Alpha, Tk has to ask X to  
give

it the drawable image behind the pixmap to write in order to blend it
correctly.. so it calls XGetImage...
problem is that we get a BadMatch error, from Xlib docs :
If the drawable is a pixmap, the given rectangle must be wholly  
contained

within the pixmap, or a BadMatch error results.
This means that we have a pixmap and we request give me the image at  
this

rectangle's coordinates, specifying X, Y, width and height..
problem is that X and Y might be  0 AND, the width and height might  
be

bigger than the width/heigh of the background...
I think it's because the button code from Tk, when it's a Tk_Width and
Tk_Height, returns the width and height of the parent window, so we  
ask
for a huge width and height, (and negative X/Y) which gets outside of  
the
border of the drawable background image.. so X returns a BadMatch  
error in

order to say hey, you're outside of the border...
Now, the solution ...
HEY, Vivia said that it worked!!! wouhou, I fixed it :D
I'm going to commit it soon :)
let me clean the code and comment the fix, then I'll commit.

the solution was to call XGetGeometry, get the visible width and  
heigh of
the drawable BEFORE calling the XGetImage, and make sure the x/y are  
= 0

and width/height are  1 and  the real width/height returned by
XGetGeometry...
Thanks to all who helped.

KaKaRoTo

On Fri, 02 Dec 2005 19:45:15 -0500, Vivia Nikolaidou
[EMAIL PROTECTED] wrote:


 Hmm...So you say that when you use the GREY FLAT button you don't  
crash?

 That's the ONLY thing you change?

 No, I also have to set its width to like 60 or something (yes it IS
 huge)...

 The code below doesn't work either :(

 Try that:
 label $sendbutton -image  [::skin::loadPixmap
 butfont]\
 -fg black -bg [::skin::getKey sendbuttonbg]
 -bd 0 -relief flat \
 -activebackground [::skin::getKey
 sendbuttonbg] -activeforeground
 black -text [trans send] \
  -font sboldf -highlightthickness 0  
-pady 0

 -padx 0 -relief flat -compound center
  bind $sendbutton Button1  
::amsn::MessageSend $w

 $text
 This is VERY VERY VERY similar to a normal button in the  
chatwindow,

 same
 picture, same command(label), don't tell me it crashed or I won't
 beleive you.


 Le 05-12-02 à 19:34, Vivia Nikolaidou a écrit :

 
  That crashes too... :(
 
  It also crashes with the sheeny-deluxe skin (Awesome skin  
though!!

  Congrats)
 
  On Fri, 2 Dec 2005, Jérôme Gagnon-Voyer wrote:
 
   Ok try that instead
  
   label $sendbutton -image [::skin::loadPixmap
   sendbutton] \
   -fg black -bg [::skin::getKey sendbuttonbg]
   -bd 0 -relief flat \
   -activebackground [::skin::getKey
   sendbuttonbg] -activeforeground
   black -text [trans send] \
-font sboldf -highlightthickness 0
   -pady 0
   -padx 0 -relief flat -compound center
bind $sendbutton Button1
   ::amsn::MessageSend $w
   $text
   Thanks for your help
  
   Le 05-12-02 à 16:44, Vivia Nikolaidou a écrit :
  
   
 -Do you still crash if you change
 : : skin::loadPixmap sendbutton
 for
 : : skin::loadPixmapsendbutton_hover
 inside   # New pixmap-skinnable button (For Windows and
 Unix 
 Tcl/Tk 8.3)
   
Yes, I still crash.
   
 If YES:
 Replace the sendbutton by:
 button $sendbutton -image [::skin::loadPixmap sendbutton] \
 -command ::amsn::MessageSend $w $text
 \
   
Still crashes :(
   
 Do you have the problem with ALL skins? Including Default
 skin.
   
I haven't tried them ALL one by one, but I haven't found any
skins that
don't crash. And, yes, default crashes.
   
Thanx for your interest, and hope this was helpful...,
   
Vivia
   
   
---
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log
files
for problems?  Stop!  Download the new AJAX search engine  
that

makes
searching your log files as easy as surfing the  web.   
DOWNLOAD

SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel 

Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Lee Olson
I don't think gender should play any role.  If someone helps us, they
deserve credit, no matter what race or gender they are.  We're a
community, so we're equal.

~Lee

On 12/2/05, Youness Alaoui [EMAIL PROTECTED] wrote:
 loool,
 yeah, I told her the same thing!!
 do you think she deserves a place in our CREDITS file for being the first
 girl that got involved with us ?
 I think it would be nice, but I don't know if everyone would be ok with
 it, Vivia, your thoughts ? ;)

 KaKaRoTo

 On Fri, 02 Dec 2005 20:09:01 -0500, Jérôme Gagnon-Voyer
 [EMAIL PROTECTED] wrote:

  Her?
 
 
  Wow, first girl on the dev list!
  Le 05-12-02 à 20:07, Youness Alaoui a écrit :
 
  Vivia's been a great help!
  A big Thanks goes to her.
 
  KaKaRoTo
 
  On Fri, 02 Dec 2005 20:01:12 -0500, Lee Olson [EMAIL PROTECTED]
  wrote:
 
  Good teamwork ;-)
 
  ~Lee
 
  On 12/2/05, Youness Alaoui [EMAIL PROTECTED] wrote:
  Yes, the problem is in the width/heigh of the button, as well as in
  its
  alpha components...
  What happens is that when you have complex Alpha, Tk has to ask X to
  give
  it the drawable image behind the pixmap to write in order to blend it
  correctly.. so it calls XGetImage...
  problem is that we get a BadMatch error, from Xlib docs :
  If the drawable is a pixmap, the given rectangle must be wholly
  contained
  within the pixmap, or a BadMatch error results.
  This means that we have a pixmap and we request give me the image at
  this
  rectangle's coordinates, specifying X, Y, width and height..
  problem is that X and Y might be  0 AND, the width and height might
  be
  bigger than the width/heigh of the background...
  I think it's because the button code from Tk, when it's a Tk_Width and
  Tk_Height, returns the width and height of the parent window, so we
  ask
  for a huge width and height, (and negative X/Y) which gets outside of
  the
  border of the drawable background image.. so X returns a BadMatch
  error in
  order to say hey, you're outside of the border...
  Now, the solution ...
  HEY, Vivia said that it worked!!! wouhou, I fixed it :D
  I'm going to commit it soon :)
  let me clean the code and comment the fix, then I'll commit.
 
  the solution was to call XGetGeometry, get the visible width and
  heigh of
  the drawable BEFORE calling the XGetImage, and make sure the x/y are
  = 0
  and width/height are  1 and  the real width/height returned by
  XGetGeometry...
  Thanks to all who helped.
 
  KaKaRoTo
 
  On Fri, 02 Dec 2005 19:45:15 -0500, Vivia Nikolaidou
  [EMAIL PROTECTED] wrote:
 
  
   Hmm...So you say that when you use the GREY FLAT button you don't
  crash?
   That's the ONLY thing you change?
  
   No, I also have to set its width to like 60 or something (yes it IS
   huge)...
  
   The code below doesn't work either :(
  
   Try that:
   label $sendbutton -image  [::skin::loadPixmap
   butfont]\
   -fg black -bg [::skin::getKey sendbuttonbg]
   -bd 0 -relief flat \
   -activebackground [::skin::getKey
   sendbuttonbg] -activeforeground
   black -text [trans send] \
-font sboldf -highlightthickness 0
  -pady 0
   -padx 0 -relief flat -compound center
bind $sendbutton Button1
  ::amsn::MessageSend $w
   $text
   This is VERY VERY VERY similar to a normal button in the
  chatwindow,
   same
   picture, same command(label), don't tell me it crashed or I won't
   beleive you.
  
  
   Le 05-12-02 à 19:34, Vivia Nikolaidou a écrit :
  
   
That crashes too... :(
   
It also crashes with the sheeny-deluxe skin (Awesome skin
  though!!
Congrats)
   
On Fri, 2 Dec 2005, Jérôme Gagnon-Voyer wrote:
   
 Ok try that instead

 label $sendbutton -image [::skin::loadPixmap
 sendbutton] \
 -fg black -bg [::skin::getKey sendbuttonbg]
 -bd 0 -relief flat \
 -activebackground [::skin::getKey
 sendbuttonbg] -activeforeground
 black -text [trans send] \
  -font sboldf -highlightthickness 0
 -pady 0
 -padx 0 -relief flat -compound center
  bind $sendbutton Button1
 ::amsn::MessageSend $w
 $text
 Thanks for your help

 Le 05-12-02 à 16:44, Vivia Nikolaidou a écrit :

 
   -Do you still crash if you change
   : : skin::loadPixmap sendbutton
   for
   : : skin::loadPixmapsendbutton_hover
   inside   # New pixmap-skinnable button (For Windows and
   Unix 
   Tcl/Tk 8.3)
 
  Yes, I still crash.
 
   If YES:
   Replace the sendbutton by:
   button $sendbutton -image [::skin::loadPixmap sendbutton] \
   -command ::amsn::MessageSend $w $text
   \
 
  Still crashes :(
 
   Do you have the problem with ALL skins? Including Default
   skin.
 
  I haven't tried them ALL one by one, but I haven't found any
  skins that
  don't crash. And, yes, default crashes.
 
  Thanx for your interest, and hope this was helpful...,
 

Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Youness Alaoui
On Fri, 02 Dec 2005 20:18:01 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED] wrote:




On Fri, 2 Dec 2005, Youness Alaoui wrote:


Vivia's been a great help!
A big Thanks goes to her.


Yes, you spotted the mistake immediately, wrote the code to correct it
within dt, and then *I* have been a great help? :)

A huge Thanks to you!!! :)




as Lee said, it's teamwork...
without Phil, I couldn't have understood the bug, the same for finding the  
solution, where it happened (I don't remember who pointed out how to get  
the backtrace)...
the code I wrote was someone's patch sent on the site Phil found, and  
without the immediate testing on your machine and your help, we wouldn't  
have been able to find it.

You also found out that it happened only after oct 17th fixes.

so, to sum it all, I'll quote Lee : great teamwork! :)

--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: Located it! : [Amsn-devel] X_GetImage crashes

2005-12-02 Thread Youness Alaoui

LOOOL
that was an awesome comic :)

KKRT


On Fri, 02 Dec 2005 20:35:18 -0500, Karol Krizka [EMAIL PROTECTED] wrote:


On Friday 02 December 2005 17:30, Vivia Nikolaidou wrote:

 loool,
 yeah, I told her the same thing!!
 do you think she deserves a place in our CREDITS file for being the  
first

 girl that got involved with us ?
 I think it would be nice, but I don't know if everyone would be ok  
with

 it, Vivia, your thoughts ? ;)

Better not, because I didn't *choose* to be a girl. :) Anyway, I should  
be
in there somewhere because of the Greek translation. I still don't get  
why

you are all so impressed... ;)


This should explain it:
http://www.penny-arcade.com/comic/2003/06/30




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: [Amsn-devel] X_GetImage crashes

2005-12-01 Thread Vivia Nikolaidou

On Wed, 30 Nov 2005, Le Philousophe - Phil wrote:

 I hope it is fixed but needs checking...

Just got the new snapshot - I suppose you haven't uploaded your changes 
yet, right? Sorry for being too impatient... :) but you can send me some 
patches so I can also check!

Anyway, THANX A LOT for your work! :)

Vivia


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: [Amsn-devel] X_GetImage crashes

2005-12-01 Thread Vivia Nikolaidou

Hi again,

Saw your fix on the CVS, but unfortunately it still has problems - crashes 
as soon as I open a second tab. Don't know what the connection with the 
traydock changes might be. :

I *have* gotten two tabs to open though. It is more likely to behave 
normally if I have another skin (Alloque_Lavender seems better, MSN7 seems 
worse, but I haven't searched them one-by-one), if I am appearing offline, 
or if I wait before opening a second chatwindow. Opening two chatwindows 
too quickly brings a sure crash. Also, once I have gotten two tabs to 
open, I can open as many more as I like, it's stable.

Sorry for the bad news, and I hope it hasn't gotten too confusing...

Vivia


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: [Amsn-devel] X_GetImage crashes

2005-12-01 Thread Youness Alaoui

do you think you can provide us with the backtrace of this bug ?
$ gdb --args wish amsn

run



bt full

...

quit




That may help.. maybe...
Thanks,
KaKaRoTo

On Thu, 01 Dec 2005 08:49:51 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED] wrote:




Hi again,

Saw your fix on the CVS, but unfortunately it still has problems -  
crashes

as soon as I open a second tab. Don't know what the connection with the
traydock changes might be. :

I *have* gotten two tabs to open though. It is more likely to behave
normally if I have another skin (Alloque_Lavender seems better, MSN7  
seems
worse, but I haven't searched them one-by-one), if I am appearing  
offline,

or if I wait before opening a second chatwindow. Opening two chatwindows
too quickly brings a sure crash. Also, once I have gotten two tabs to
open, I can open as many more as I like, it's stable.

Sorry for the bad news, and I hope it hasn't gotten too confusing...

Vivia


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: [Amsn-devel] X_GetImage crashes

2005-12-01 Thread Vivia Nikolaidou

Hi,

gdb gives no information :(

(gdb) run
Starting program: /usr/bin/wish /usr/local/msn/amsn
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...X 
Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  73 (X_GetImage)
  Serial number of failed request:  21735
  Current serial number in output stream:  21735

Program exited with code 01.
(gdb) bt full
No stack.
(gdb) 

---

Vivia

On Thu, 1 Dec 2005, Youness Alaoui wrote:

 do you think you can provide us with the backtrace of this bug ?
 $ gdb --args wish amsn
  run
 
  bt full
 ...
  quit
 
 
 
 That may help.. maybe...
 Thanks,
 KaKaRoTo
 
 On Thu, 01 Dec 2005 08:49:51 -0500, Vivia Nikolaidou [EMAIL PROTECTED]
 wrote:
 
  
  Hi again,
  
  Saw your fix on the CVS, but unfortunately it still has problems -
  crashes
  as soon as I open a second tab. Don't know what the connection with the
  traydock changes might be. :
  
  I *have* gotten two tabs to open though. It is more likely to behave
  normally if I have another skin (Alloque_Lavender seems better, MSN7
  seems
  worse, but I haven't searched them one-by-one), if I am appearing
  offline,
  or if I wait before opening a second chatwindow. Opening two chatwindows
  too quickly brings a sure crash. Also, once I have gotten two tabs to
  open, I can open as many more as I like, it's stable.
  
  Sorry for the bad news, and I hope it hasn't gotten too confusing...
  
  Vivia
  
  
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
  files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
  ___
  Amsn-devel mailing list
  Amsn-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/amsn-devel
 
 
 
 -- 
 KaKaRoTo
 
 
 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel
 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: [Amsn-devel] X_GetImage crashes

2005-12-01 Thread Youness Alaoui
maybe because it's not a 'crash', segfault or anything, it's probably  
because the software exited so maybe looking at the documentation of gdb  
you'll find a way to say put a breakpoint right before it exists in  
order for you to get the backtrace when the error occurs...

Not sure though if it will work..

KaKaRoTo

On Thu, 01 Dec 2005 09:45:38 -0500, Vivia Nikolaidou  
[EMAIL PROTECTED] wrote:





Install GDB: The GNU Project Debugger


Not really - I have it installed, I ran amsn under gdb, it just could  
find

no backtrace!


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log  
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: [Amsn-devel] X_GetImage crashes

2005-12-01 Thread Le Philousophe - Phil
Try before launching the program : break _XError or break _XDefaultError
And send us the back trace you can have... Be careful because it can break 
even if aMsn won't stop after...
Phil

Le Jeudi 1 Décembre 2005 18:04, Harry Vennik a écrit :
 Yes, that's ok. GDB cannot help on such errors I think. The app is
 terminated by X because the X server gets a bad command from it. Because
 the program exits gdb cannot get any bt.

 A progam exit is quite different from receiving a signal (a Segfault for
 example). It is more like a normal program termination, only the exit code
 is different.

 Op donderdag 1 december 2005 15:45, schreef Vivia Nikolaidou:
   Install GDB: The GNU Project Debugger
 
  Not really - I have it installed, I ran amsn under gdb, it just could
  find no backtrace!
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
  files for problems?  Stop!  Download the new AJAX search engine that
  makes searching your log files as easy as surfing the  web.  DOWNLOAD
  SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
  ___
  Amsn-devel mailing list
  Amsn-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/amsn-devel

 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel


Re: [Amsn-devel] X_GetImage crashes

2005-12-01 Thread Harry Vennik
Yes, that's ok. GDB cannot help on such errors I think. The app is terminated 
by X because the X server gets a bad command from it. Because the program 
exits gdb cannot get any bt.

A progam exit is quite different from receiving a signal (a Segfault for 
example). It is more like a normal program termination, only the exit code is 
different.

Op donderdag 1 december 2005 15:45, schreef Vivia Nikolaidou:
  Install GDB: The GNU Project Debugger

 Not really - I have it installed, I ran amsn under gdb, it just could find
 no backtrace!


 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Amsn-devel mailing list
 Amsn-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amsn-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel