Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-13-2007, 02:49 PM
Murrgon Murrgon is online now
Registered User
 
Join Date: 07-28-2005
Posts: 19
Macro too big?

I have a Send Email step that is triggered if my build fails. All of the compiler errors are saved in a macro. Before sending the email, I have it build an EmailText macro comprising of a bit of info at the top and the attached set of errors that occured. I then use this macro as the message content for the email. If there were a lot of errors however, the send email step fails. I get an error that looks like this:

Error at Line 1, Column 11 (Syntax error)
Code: Microsoft .NET Framework, Version 2.0.50727.42

Which isn't very informative. If I shrink the size of the EmailText macro, it works fine. I am using VBP version 5.7.

Thank you
Reply With Quote
  #2  
Old 02-13-2007, 04:30 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Most likely, you're storing text in the macro value without escaping it. Use vbld_EscapeString to ensure it's properly escaped.
http://www.visualbuild.com/Manual/sysscriptmisc.htm
Reply With Quote
  #3  
Old 02-13-2007, 04:44 PM
Murrgon Murrgon is online now
Registered User
 
Join Date: 07-28-2005
Posts: 19
Thank you, that was it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:28 PM.


Copyright © 1999-2023 Kinook Software, Inc.