I'm getting this error. bat tested directly doesn't gives error, only with Miner Control
[14:38:59] Starting TradeMyBit X15 with F:\Desktop\sgminer-5.1-dev-2014-11-10-win32\sgminer.exe -o stratum+tcp://am01.eu.trademybit.com:6660 -u xxxx -p xxxx -k bitblock -I 18 -w 256 --vectors 1 --thread-concurrency 8192 --lookup-gap 2 --gpu-threads 2
[14:38:59] Global quota greatest common denominator set to 1
[14:38:59] Set default algorithm to bitblock
[14:38:59] Default Devices = all
[14:38:59] set_devices(all)
[14:38:59] GPU 0 Worksize set to 256.
[14:38:59] Loading settings from default_profile for pool 0
[14:38:59] Pool 0 Algorithm set to "bitblock"
[14:38:59] Pool 0 devices set to "all"
[14:38:59] Pool 0 lookup gap set to "2"
[14:38:59] Pool 0 Intensity set to "18"
[14:38:59] Pool 0 XIntensity set to ""
[14:38:59] Pool 0 Raw Intensity set to ""
[14:38:59] Pool 0 Thread Concurrency set to "8192"
[14:38:59] Pool 0 GPU Clock set to "(null)"
[14:38:59] Pool 0 GPU Memory clock set to "(null)"
[14:38:59] Pool 0 GPU Threads set to "2"
[14:38:59] Pool 0 GPU Fan set to "(null)"
[14:38:59] Pool 0 GPU Powertune set to "(null)"
[14:38:59] Pool 0 GPU Vddc set to "(null)"
[14:38:59] Pool 0 Shaders set to "(null)"
[14:38:59] Pool 0 Worksize set to "256"
LINES value must be >= 2 and <= -4904: got -1
initscr(): Unable to create SP
EDIT : Just finished searcheing google, and it seems I missed -T command :O . Might be useful if you put this on first post for windows user

I don't know if it's sgminer or miner control