Liberty BASIC Community Forum
« Need explanation Please »

Welcome Guest. Please Login or Register.
Sep 21st, 2017, 12:17am


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Need explanation Please  (Read 186 times)
milfredo
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 104
xx Need explanation Please
« Thread started on: Jul 12th, 2017, 11:08pm »

I have written a program to handle csv data files. And almost every file works fine. But on a few I get the following error. I do not understand it so I do not know where to look to correct the problem. Can some one explain this...Thanks...

Error log timestamp Wednesday 07/12/17 09:01:14 PM

Runtime error: receiver is not a Boolean

ControlError(Exception)>>grinefaultAction
ExceptionHandler>>findHandler: <aControlError>
ControlError(Exception)>>activateHandler: <anExceptionHandler>
ControlError(Exception)>>handle
ControlError(Exception)>>signal
ControlError class(Exception class)>>signal: <'receiver is not a Bo...'>
UndefinedObject(Object)>>mustBeBoolean
BasicProgram>>terminateRun: <aMessageNotUnderstood>
[] in BasicProgram>>errorHandlerBlock
ExceptionHandler>>evaluateResponseBlock: <aBlockClosure> for: <aMessageNotUnderstood>
[] in ExceptionHandler>>handle:
ProtectedFrameMarker(BlockClosure)>>setUnwind: <aBlockClosure>
BlockClosure>>invisibleEnsure: <aBlockClosure>
ExceptionHandler>>handle: <aMessageNotUnderstood>
ExceptionHandler>>findHandler: <aMessageNotUnderstood>
MessageNotUnderstood(Exception)>>activateHandler: <anExceptionHandler>
MessageNotUnderstood(Exception)>>handle
MessageNotUnderstood(Exception)>>signal
MessageNotUnderstood class>>message: <aMessage>
UndefinedObject(Object)>>grinoesNotUnderstand: <aMessage>
BasicNextBehavior>>value
[] in BasicProgram>>begin
ExceptionHandler>>evaluateProtectedBlock: <aBlockClosure>
[] in ExceptionHandler>>activateDuring:
ProtectedFrameMarker(BlockClosure)>>setUnwind: <aBlockClosure>
BlockClosure>>invisibleEnsure: <aBlockClosure>
ExceptionHandler>>activateDuring: <aBlockClosure>
ExceptionHandler class>>handle: <anError class> with: <aBlockClosure> during: <aBlockClosure>
BlockClosure>>on: <anError class> do: <aBlockClosure>
BasicProgram>>begin
BasicProgram>>gotoAndIfStoppedBegin: <'[batchprocessing]'>
BasicProgram>>handlerName: <'[batchprocessing]'> evaluate: <aBlockClosure> callParameters: <anOrderedCollection>
BasicProgram>>submitHandlerName: <'[batchprocessing]'> evaluate: <aBlockClosure> callParameters: <anOrderedCollection>
BasicProgram>>submitHandlerName: <'[batchprocessing]'> callParameters: <anOrderedCollection>
BasicMenuWrapper>>laugherform: <'[batchprocessing]'>
BasicMenuWrapper>>evaluateString: <'[batchprocessing]'>
String>>evaluateFor: <aBasicMenuWrapper>
[] in MenuWindow>>laugherformMenuItem:
ExceptionHandler>>evaluateProtectedBlock: <aBlockClosure>
[] in ExceptionHandler>>activateDuring:
ProtectedFrameMarker(BlockClosure)>>setUnwind: <aBlockClosure>
BlockClosure>>invisibleEnsure: <aBlockClosure>
ExceptionHandler>>activateDuring: <aBlockClosure>
ExceptionHandler class>>handle: <aMessageNotUnderstood class> with: <aBlockClosure> during: <aBlockClosure>
BlockClosure>>on: <aMessageNotUnderstood class> do: <aBlockClosure>
MenuWindow>>laugherformMenuItem: <1025>
TopPane(ApplicationWindow)>>laugherformMenuItem: <1025>
Message>>laugherform
NotificationManager>>empty
NotificationManager>>runPendingEvents


Milfredo
User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5526
xx Re: Need explanation Please
« Reply #1 on: Jul 13th, 2017, 01:41am »

Run the code in the debugger, it will stop on the error with the offending line of code highlighted. Show us that line of code.
User IP Logged

CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2833
xx Re: Need explanation Please
« Reply #2 on: Jul 13th, 2017, 07:05am »

Or, you could try using Lite Debug.

-Carl
on Jul 13th, 2017, 01:41am, Rod wrote:
Run the code in the debugger, it will stop on the error with the offending line of code highlighted. Show us that line of code.
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
milfredo
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 104
xx Re: Need explanation Please
« Reply #3 on: Jul 13th, 2017, 12:18pm »

I have run it in debugger and it does not in fact stop at the offending line. That's why I can't track it down.

Milfredo
User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5526
xx Re: Need explanation Please
« Reply #4 on: Jul 13th, 2017, 2:15pm »

Have you tried animate >>> as well as > run? Can we see the code?
User IP Logged

milfredo
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 104
xx Re: Need explanation Please
« Reply #5 on: Jul 13th, 2017, 5:39pm »

I will try the animate first. And what code do you want to see? The program is 9,000 lines long.
User IP Logged

CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2833
xx Re: Need explanation Please
« Reply #6 on: Jul 13th, 2017, 6:12pm »

on Jul 13th, 2017, 5:39pm, milfredo wrote:
I will try the animate first. And what code do you want to see? The program is 9,000 lines long.

I have to ask, what version of LB are you using?

-Carl
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
milfredo
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 104
xx Re: Need explanation Please
« Reply #7 on: Jul 13th, 2017, 7:08pm »

4.5.1

I think I know what the problem might be. I was running the code from a folder that did not have access to the IsFile.dll

here is the code

temp$="datadir.ini"
Open "IsFile32.dll" For DLL As #ff
CallDLL #ff, "IsFile",temp$ As ptr, result As long
close #ff
if result = 0 then
Open temp$ for input As #d
line input #d,extension$
line input #d,csvdir$
close #d

I moved the bas file to a folder that I run other programs that access the "IsFile32.dll" and now I don't get the error.

Sorry to bother you guys.

Thanks so much for your help.
Milfredo
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls