Charmed Quark Systems
Google
WWW CharmedQuark.com

Go Back   Charmed Quark Systems > General Discussion > CQC Support
Register FAQ Members List Calendar Mark Forums Read

CQC Support Report bugs, make wishes, discuss plans, ask questions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2006, 08:19 AM
robertmee robertmee is offline
 
Join Date: Feb 2005
Posts: 1,953
Default CML Compiles and Runs but I get a C++ error on Loading Driver

I was updating my Maxent Driver today trying to help it handle all the junk messages it spits out when it's in the AV1/AV2 modes. I discovered that the device sends my ACK but appends a bunch of crap to it with no CR/LF, so I was missing the ACK. Put in some code to check for that and remove the crap and it works great in CML debug mode. The driver is doesn't lose connection now in that mode. However, when I packaged the driver and imported it and then tried to Add a new driver, I get a C++ exception error at this line of code:

Code:
Locals= String sMessage; EndLocals; If (Reply.GetLength() > 3) Reply.ExtractSubStr(0, 3, sMessage); (sMessage is the offending col/row) If (sMessage = kReceive) Reply := sMessage; EndIf; EndIf;

This snippet of code is taking a reply of "RCV4600 Key Got" and returning
"RCV". Again, works great in the CML Harness, but errors out on adding the driver.

Last edited by robertmee : 10-29-2006 at 09:07 AM.
Reply With Quote
  #2  
Old 10-29-2006, 08:49 AM
Dean Roddey's Avatar
Dean Roddey Dean Roddey is offline
Administrator
 
Join Date: Aug 2002
Location: Mountain View, CA
Posts: 32,496
Default

What's the error?
__________________
Dean Roddey
Software Geek Extraordinaire
Reply With Quote
  #3  
Old 10-29-2006, 09:06 AM
robertmee robertmee is offline
 
Join Date: Feb 2005
Posts: 1,953
Default

Quote:
Originally Posted by Dean Roddey
What's the error?

A C++ Error occurred during Macro Parsing

Expected a method call, object reference or flow control statement here, Process CQCServer, Class DataFormat

Compiles fine within CML Debugger.

Last edited by robertmee : 10-29-2006 at 09:12 AM.
Reply With Quote
  #4  
Old 10-29-2006, 10:08 AM
robertmee robertmee is offline
 
Join Date: Feb 2005
Posts: 1,953
Default

My Fubar....

I had the string sMessage declared within the Debug section. So, of course it ran in the CML Editor because I had Debug mode checked.

Sorry for the trouble.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:49 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.