Hi Oleg, I didn't try the dispose() method but I did try flushing then closing then sending the filename to the other app for closing. I even tried opening the files as locked and shared.
I was able to replicate this with another Windows XP SP3 but is not replicateable with XP SP2. Its a head-scratching problem because I tried it with 5 other machines (beside my unit) and I was able to replicate it with two out of the five units. Further investigation shows that one of the difference is that the 3 units that didn't show the problem was updating is OS using the in-house Windows Update Server. My unit and the other two were using both the in-house and the official Microsoft Windows Update servers. I've already inform our network admins and they are promising to look into it when they have a free time. One of the suggestions put forward by the network admins is to setup a policy where machines joined to the domain won't be able to update using the official Microsoft windows update servers and instead use the in-house windows update server exclusively. r/Alex -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Oleg Kobchenko Sent: Wednesday, February 04, 2009 11:53 AM To: Chat forum Subject: Re: [Jchat] Unicode/UTF8 with getB() and setB() Are you sure the file is closed, flushed, disposed (as IDisposable) or any combination of the above? ----- Original Message ---- > From: Alex Rufon <[email protected]> > To: Chat forum <[email protected]> > Sent: Tuesday, February 3, 2009 8:37:43 PM > Subject: Re: [Jchat] Unicode/UTF8 with getB() and setB() > > Hi Bill, > > Thanks for the heads-up. :) > > BTW, there is some weirdness going-on in my system. I save a file in C#, > close > the file and send the filename to J ... J would open the file and it would be > empty. But if you do this manually like save the file in C# then close the C# > program then open the same file in J ... J would get the updated file. > > I also did a test with two C# DLL's and I get the same problem, validating my > theory that this is a file system problem and has nothing to do with J. My > theory is that the OS is caching the write to the file hence the other > program > cannot see any changes to it. My office development system is a Windows XP > Pro > SP3 ... when I tried the same thing with my Vista Starter edition at home, > its > working as expected. Wierdness!!! > > I didn't get the first message though ... I just got this one. Oh and I still > want some Unicode loving for setb() and getb(). Hehehehehe. > > r/Alex > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf > Of bill lam > Sent: Monday, February 02, 2009 12:05 PM > To: [email protected] > Subject: Re: [Jchat] Unicode/UTF8 with getB() and setB() > > (re-send, sorry if duplicated) > > On Mon, 02 Feb 2009, Alex Rufon wrote: > > Hi. > > > > > > > > We just got a project to make an ERP system for a laptop bag company. > > > > > > > > Unfortunately, during the design phase, J got cut-out (which means I got > > cut out). The main argument was the support for Simplified Chinese > > characters. This will be the first time that our company would be > > building a 100% Simplified Chinese application. > > > > > > > > I do hope the getB() and setB() functions get the Unicode love soon. > > > > > > > > Right now I'm thinking of working around this by writing the Unicode > > strings to be sent to J to a text file first and sending the filename to > > J and do the same thing with data from J to C#. There would be an > > overhead though (converting array to CSV strings, writing to file, > > reading file, converting CSV to array) which is something that is > > avoided with the getB() and setB() functions. > > You can workaround getB an setB functions, but simplified chinese > characters use GB18030 encoding that contains character beyond bmp. J > only supports 2 byte ucs (iso 10646?) so that not all characters can > be handled by J and this limitation can not be workaround by user > code, thus you are bound to be cut out unfortunately. > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > 唐詩271 杜甫 江南逢李龜年 > 岐王宅裡尋常見 崔九堂前幾度聞 正是江南好風景 落花時節又逢君 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
