473,395 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Scribble bugs

I built the C# example of Scribble and played around with it for a while. I
have found these following problems with the program:

1. It starts horribly slowly. I understand MSIL code must be JIT-compiled
before they can be run but Scribble is such a simple program and it should
not take nearly a minute to start up on my Pentium IV 2.4 Hz machine running
windows xp.

2. The strokes are bulky--there are white "holes" in the strokes especially
when it is drawn really slowly. At first I thought it was a sort of texture
applied for fun, but with some experiments taken it surely isn't the case.

3. The re-paint process is rather slow! This time the same group of painting
methods are activated repeatedly and theoretically it should not take too
long since the JIT compilation is carried out only at the first activation
of a method. If you try to scribble up the entire painting area and drag a
dialog box (the about box) across you'll find repainting around the dialog
box and the box becomes difficult to move.

4. The re-paint is not complete! I scribbled up the whole painting area with
a thick pen and the painting area becomes simply plain black. Now after some
dialog box dragging and menu popping, it happens some white holes (rather
big) comes up which indicates that the area is not completely repainted.

I also tried to build same Scribble written in C++ and the MFC library
(non-dotnet stuff). The repaint process is still slow but visibly faster
than the C# example; problem 1, 3 and 4 does not appear.

As a critical conclusion, C# programs are slow at least in drawings, and the
GDI+ .Net interface seems buggy.

ben


Nov 16 '05 #1
1 1719
"benben" <be******@yahoo.com.au> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
I built the C# example of Scribble and played around with it for a while. I have found these following problems with the program:

1. It starts horribly slowly. I understand MSIL code must be JIT-compiled
before they can be run but Scribble is such a simple program and it should
not take nearly a minute to start up on my Pentium IV 2.4 Hz machine running windows xp.
Sorry, don't know. Try a splash screen, this will improve visual performance
significantly.
2. The strokes are bulky--there are white "holes" in the strokes especially when it is drawn really slowly. At first I thought it was a sort of texture applied for fun, but with some experiments taken it surely isn't the case.
Re-paint problem just like 3, I assume?
3. The re-paint process is rather slow! This time the same group of painting methods are activated repeatedly and theoretically it should not take too
long since the JIT compilation is carried out only at the first activation
of a method. If you try to scribble up the entire painting area and drag a
dialog box (the about box) across you'll find repainting around the dialog
box and the box becomes difficult to move.
Try
.SuspendLayout
and
.ResumeLayout

I would be glad to hear your about your experience on this.
4. The re-paint is not complete! I scribbled up the whole painting area with a thick pen and the painting area becomes simply plain black. Now after some dialog box dragging and menu popping, it happens some white holes (rather
big) comes up which indicates that the area is not completely repainted.


Can't help on this one, sorry. Perhaps its again caused by the redraw or by
the order of the redraw?

- Joris
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: benben | last post by:
I built the C# example of Scribble and played around with it for a while. I have found these following problems with the program: 1. It starts horribly slowly. I understand MSIL code must be...
0
by: benben | last post by:
I built the C# example of Scribble and played around with it for a while. I have found these following problems with the program: 1. It starts horribly slowly. I understand MSIL code must be...
2
by: bh | last post by:
i haven't the scroibble in my cd of visual c++ if someone can help me for find this in the net because i hope to learn how can i use visual c++ for developping my applications with interface...
1
by: Charles A. Lackman | last post by:
Hello, I have an aspx web page and would like to add a box where the visitor can scribble inside of it with their mouse and save it to their hard drive. I know how to accomplish it in a desktop...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.