Skip to main content
Inspiring
October 21, 2009
Question

Branch target offset too large for short - using CFThread

  • October 21, 2009
  • 2 replies
  • 1267 views

I am just starting to get into using CFThread.  I have a process I am working on to allow clients to order background reports on multiple applicants simultaneously.  I am doing this using CFThread.  Through some trial and error I discovered that I needed to var scope the variables that are used in the CFC's that do the bulk of the report processing.  As soon as I did that I started getting the error "                                                                                                                                                      Branch target offset too large for short". Everything I have read on this error basically says I have too much code in the CFC which doesn't make sense as I am using this CFC in several other places in the site without error.  The problem only occured after var scoping my variables in the CFC and them sticking that CFC inside a CFTHread tag.

Has only one seen anything like this before?

Thanks

This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
November 1, 2009

Difficult to say without seeing the code. Did you set the attribute output="false" for cfcomponent and cffunction? Could we see the code?

Inspiring
October 31, 2009

Haven't seen it, no.

Can you revert to your un-VARed code, and then re-VAR the variables one by one, retesting between each, and see if a specific one gives you the error?

I don't know what this might tell you, but it might help focus where to look.

NB: you should be VARing your variables within functions as a matter of course, not simply in situations in which the code is being called via <cfthread>.

--

Adam