Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Macro too big? (https://www.kinook.com/Forum/showthread.php?t=2280)

Murrgon 02-13-2007 01:49 PM

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

kinook 02-13-2007 03:30 PM

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

Murrgon 02-13-2007 03:44 PM

Thank you, that was it.


All times are GMT -5. The time now is 05:50 AM.


Copyright © 1999-2023 Kinook Software, Inc.