Re: [WiX-users] DTF Stream Operations Issue

2008-05-24 Thread Jason Ginchereau
Fixed in build 3.0.4123. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Ginchereau Sent: Wednesday, May 21, 2008 1:43 PM To: Christopher Karper; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DTF Stream Operations Issue This is a bug in the reading of record

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Karper
TECTED] > *Sent:* Wednesday, May 21, 2008 1:24 PM > *To:* Jason Ginchereau > > *Subject:* Re: [WiX-users] DTF Stream Operations Issue > > > > Exception occured during stream processing: > > System.ArgumentNullException: Value cannot be null. > Parameter name: source

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Jason Ginchereau
PROTECTED] Sent: Wednesday, May 21, 2008 1:24 PM To: Jason Ginchereau Subject: Re: [WiX-users] DTF Stream Operations Issue Exception occured during stream processing: System.ArgumentNullException: Value cannot be null. Parameter name: source at

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Kelly Leahy
D]> Sent by: [EMAIL PROTECTED] 05/21/2008 01:21 PM To Jason Ginchereau <[EMAIL PROTECTED]>, Christopher Karper <[EMAIL PROTECTED]>, Kelly Leahy <[EMAIL PROTECTED]> cc "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, "wix-users@lists.sourceforge.net" Su

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Painter
her Karper Sent: Wednesday, May 21, 2008 1:10 PM To: Kelly Leahy Cc: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DTF Stream Operations Issue No, it's not, and actually, that was a remnant from a variation I tried. I thought maybe ReadToEnd wasn't working, so I

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Karper
;> >> >> >> *"Christopher Karper" <[EMAIL PROTECTED]>* >> >> Sent by: [EMAIL PROTECTED] 05/21/2008 12:38 PM >>To >> "Christopher Painter" <[EMAIL PROTECTED]> >> cc >> "wix-users@lists.sourceforge.net

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Painter
To "Christopher Painter" <[EMAIL PROTECTED]> cc "wix-users@lists.sourceforge.net" Subject Re: [WiX-users] DTF Stream Operations Issue I haven't seen a WiX developer yet that wasn't helpful and open. I'm i

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Jason Ginchereau
Can you share the stack trace? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Karper Sent: Wednesday, May 21, 2008 1:10 PM To: Kelly Leahy Cc: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] DTF Stream Operations Issue No, it's not

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Karper
gt; > *"Christopher Karper" <[EMAIL PROTECTED]>* > > Sent by: [EMAIL PROTECTED] > > 05/21/2008 12:38 PM > To > "Christopher Painter" <[EMAIL PROTECTED]> > cc > "wix-users@lists.sourceforge.net" > Subject > Re: [WiX-users

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Kelly Leahy
r" <[EMAIL PROTECTED]> cc "wix-users@lists.sourceforge.net" Subject Re: [WiX-users] DTF Stream Operations Issue I haven't seen a WiX developer yet that wasn't helpful and open. I'm impressed with the fact that the entire team is very active in this mai

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Karper
I haven't seen a WiX developer yet that wasn't helpful and open. I'm impressed with the fact that the entire team is very active in this mailing list. On Wed, May 21, 2008 at 3:20 PM, Christopher Painter <[EMAIL PROTECTED]> wrote: > As an aside, we do have the source code to all those internal

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Karper
ent:* Wednesday, May 21, 2008 12:13 PM > *To:* Christopher Painter > *Cc:* wix-users@lists.sourceforge.net > *Subject:* Re: [WiX-users] DTF Stream Operations Issue > > > > Shouldn't matter. I can get the data to and from the file with no issue. > It's just trying to get t

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Painter
As an aside, we do have the source code to all those internal classes :) And more importantly we have a developer who in the very few days I've known him has been extremly open and cordial in addressing questions about the classes and even taking suggestions from improvement from such an obvi

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Jason Ginchereau
ists.sourceforge.net Subject: Re: [WiX-users] DTF Stream Operations Issue Shouldn't matter. I can get the data to and from the file with no issue. It's just trying to get the data into the memorystream instead f the filestream is an issue. The RecordStream object in DTF looks l

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Painter
I had a file called TEST.TXT (ANSI) that contained TEST on three lines. I streamed it into the Binary table and sure enough the readerfunctions threw exceptions telling me to check if I've reached the end of the file. However, this might be a hack - I'm not sure, I was able to work around

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Jason Ginchereau
Maybe an obvious question, but is the "Data" field of that Record null? Check binRec.IsNull("Data"), or check for a null return from binRec.GetStream("Data"). If the field is null and you don't expect it to be, please share a little more of your code. -Jason- From: [EMAIL PROTECTED] [mailto:[E

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Karper
Shouldn't matter. I can get the data to and from the file with no issue. It's just trying to get the data into the memorystream instead f the filestream is an issue. The RecordStream object in DTF looks like it might be useful, but in typical MS fashion, the useful foundation classes are interna

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Painter
Ok, I was wondering how you were going to read binary data into a string. I'm not the best C# guy in the world but I'll see what I can learn here. I am wondering though, is your text unicode or ansi and would it even matter? Christopher Karper <[EMAIL PROTECTED]> wrote: It's text

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Karper
It's text, and I'm running as a custom action, so my database should already be available. I'm opening the view with a joined query, but getting the same data. I can get the record fine, and I can get the stream fine, it's when I try to read from the StreamReader wrapper that I run into issues.

Re: [WiX-users] DTF Stream Operations Issue

2008-05-21 Thread Christopher Painter
What is the type of script? Eitherway, would this work for you? Database db = new Database("C:\\TEST.MSI", DatabaseOpenMode.ReadOnly); View view = db.OpenView("SELECT `Name`, `Data` From `Binary` WHERE `Binary`.`Name` = 'ISXMLCFG.DLL'"); view.Execute(); foreach (Record rec in vie