Premature resize event only on Japanese system?

B

Bert Hyman

I have an application that's failing only when it's run on a Japanese
Win2KPro SP4 system because a form is receiving a resize event
"prematurely", or at least before the form is prepared to receive it.

With dotNet 1.1 installed, the application works as expected on
US-English, German and Italian systems, but fails on the Japanese
system.

I see that the system does NOT have the Japanese dotNet Framework
installed; could this be the problem? The error messages do come out
in Japanese though.

Is there a documented or known difference in the order events are
fired in form creation in a Japanese system?

I can code to handle the condition, but I wasn't expecting to have to
do that.
 
Y

Ying-Shen Yu[MSFT]

Hi Bert,

I looked up in our bug database but didn't found a similiar issue.
It look to me not a correct behavior, but I'm not sure if it is a bug,
before we investigate it further.

Could you let me know the event order happened on the JPN W2k system and on
an Engilish system?
And I'm not clear about the reason why you say it's "premature" and at
least before the form is prepared?

If you have a simple sample to reproduce this issue, please feel free to
send it to me to let me take a closer look at it.

Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.
 
B

Bert Hyman

(e-mail address removed) (Ying-Shen Yu[MSFT]) wrote in
I looked up in our bug database but didn't found a similiar issue.
It look to me not a correct behavior, but I'm not sure if it is a
bug, before we investigate it further.

Could you let me know the event order happened on the JPN W2k
system and on an Engilish system?
And I'm not clear about the reason why you say it's "premature" and
at least before the form is prepared?

On examining the code (I didn't write it), it appears that the coder
was inviting trouble.

The form contains a ListView, but columns are added to it by user
code in the Load event handler.

However, the form registers for the Resize event in the constructor,
and code in the Resize event handler attempts to manipulate members
of the ListView's Columns collection using hard-coded indices.

Apparently, on the Japanese system, a Resize event is occuring before
the columns have been added to the ListView during the Load event
processing, but the Resize event occurs a little later on the other
systems.

So, after further thought, I don't really think there's a dotNet or
system problem, and in fact, we've probably just been lucky on our
non-Japanese systems up 'til now.

So, I've added code to handle this correctly, and it's no longer a
problem.

Thanks ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top