Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Fwd: [Fwd: [Fwd: Re: [platform-swt-dev] Running ControlExample example program fails underHP-UX]]]

David,

I am resending my previous email. I have a log file as
an attachment, please let me know how to send this. 

Is it possible for you guys to go and look into the SWT 
archives of the eclipse.org. Thanks!

-Sri


Mike,

Thanks for the response. Yes, the arguments look reasonable 
enough and I have already gone thru. listing out the <xy> points, 
the drawable, display and the GC with their respective style
and mode, which is the default(Complex & CoordModeOrigin). 
Also, tried with the different combinations of style and mode 
arguments, no change. Created a simple example C program,
which contains the same points as the one in the controlexample 
program, and the XFillPolygon works fine. I have attached the 
controlexample log file where it list out the debug info. of the
JNI code before hanging in XFillPolygon. And also, note that, 
by replacing it with XDrawLines draws the lines on the arrow 
button of the Tab widget and runs the controlexample pgm just fine.

I will go thru. more thoroughly on the HP documentation for 
any hints or specifics for the above problem to occur.

Thanks
-Sri

Mike_Wilson@xxxxxxx wrote:

>
> The first thing to do is to make sure that the arguments which are
> being passed to XFillPolygon are reasonable. Putting in a printf is
> probably the simplest way to do this. After that, I'd hack up a simple
> C example which invoked an XFillPolygon call with the same arguments
> and see if that works.
>
> The only other thing I can suggest initially is to look through the
> hp-ux documentation/release notes and see if there is anything special
> in the way of warnings about XFillPolygon.
>
> McQ.
>
>
>
>  Sridhar Bidigalu <sridhar@xxxxxxx>
   Sent by:                                     To:
   platform-swt-dev-admin@xxxxxxxxxxx   platform-swt-dev@xxxxxxxxxxx
                                                cc:
   02/27/2002 03:11 PM                          Subject:
   Please respond to platform-swt-dev   [platform-swt-dev] Running
                                        ControlExample example program
                                        fails under HP-UX
>
>
>
> Controlexample hangs in the XFillPolygon call of the JNI code .
> In order to confirm on the Display, Drawable and the graphic context,
> I tried to use the XDrawLines() API, this works fine. So it guaranteed
>
> me on the Display, Drawable, GC and the points.
>
> Controlexample popups with the arrow buttons on the tabstack
> drawn with lines rather than a filled polygon.
>
> I also tried to debug the problem using the JNI debugging procedure
> listed on the HP website.
>
>
> ttp://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2
>
> 732,00.html
>
> But, it does not really work, i.e. will not not give me any more
> than what I have in the JNI code, it hangs in the XFillPolygon.
> Giving the break point at the JNI-XFillPolygon, I was able to reach
> the break point, but gdb will not list the debugging code or cannot
> step thru. the code. Invoking "next" would basically will continue
> with
> the execution.
>
> I have gone thru. the code of TabFolder.java manually, where it calls
> the GC.fillpolygon and draws the arrow. I haven't really gone thru.
> debugging the code using "jdb".
>
> Any suggesions on the above or better debugging ideas or any
> specifics of the SWT to look at, will greatly help. Thanks!
>
> -Sri
>
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>


Back to the top