new version 6.8 throwing error

hlo

Member
Licensed User
finally got around to upgrading to version 6.8 and now my programs I have wrote are throwing some strange errors that they did now show in version 6.50.

here is the 1st error:
Pimcol:pimcollection line 777
unexpected character after label declaration
here is a portion of the code:

Sub dicontact 'write to contacts list
PimCol:pimCollection
contact:Contact
contact.New1 'make contact object
contact.CreateNew

I never got that error under version 6.5 and I can't see any illegal characters.
I erased the line twice a retyped it and still get the error.
I get this error on both the device and desktop veriosns.

'''''''
I have another program that is O.K. on the desktop version but when I load it into the handheld device version of b4p it gives me the error:
'An error occurred. An error message cannot be displayed because an optional resource assembly is missing'
than the program loads fine, but when i try to compile again i get that error.

also, if i unload version 6.80 and restore version 6.50 the errors go away on both the desktop and device.

any thoughts?
 

klaus

Expert
Licensed User
Longtime User
I am not familiar with the Outlook library.
But what are these 2 lines supposed to do?
PimCol:pimCollection
contact:Contact
The ':' character is never used for objects.

Did you compile your programs with or without the 'Optimized Compilation' on or off.

For the error on the device you should have a look here:
http://www.b4x.com/forum/questions-help-needed/870-error-messages-device.html

Best regards.
 

hlo

Member
Licensed User
re:

thanks for the error file for the device. should clear up a few things.
:sign0060:
as for the outlook code, it worked fine under 6.5 optimized or not. It may be a case of the code supposed to not work and in 6.8 he trapped it out. I'm going to post the code for earl to look at.
thanks again.


I am not familiar with the Outlook library.
But what are these 2 lines supposed to do?
PimCol:pimCollection
contact:Contact
The ':' character is never used for objects.

Did you compile your programs with or without the 'Optimized Compilation' on or off.

For the error on the device you should have a look here:
http://www.b4x.com/forum/questions-help-needed/870-error-messages-device.html

Best regards.
 

hlo

Member
Licensed User
one program fixed

adding the error code showed me that the error was that the source file could not find the hardware.dll .
I had a copy of the source code in several directories and for some odd reason the source code from the directory without the hardware.dll was the one being executed. even though I loaded the source code from the directory with the hardware.dll. after I renamed that source file in the wrong directory, everthing was fine.

attached is the code that's getting the illegal character both on the desktop and device.
thanks
 

hlo

Member
Licensed User
actual illegal characters

the problem with the outlook area I just commented out for now.
After I did that, though, my forms wouldn't run. kept telling me they didn't exist.
So I converted the code to text then looked at it with a text editor.
I actually did find some illeagal characters in the form declaration area of the source code (the area not seen normally). Not sure how they got there. It was always after the @ symbol just a few random characters. right after the line where the form was declared.
when I removed them and renamed the file back to .sbp it now works (except for the outlook stuff that is, I'll look at that later).
odd:confused:
 

klaus

Expert
Licensed User
Longtime User
You should comment out ALL the lines where you have the ':' character like in line 777 and 778
'PimCol:pimCollection
'contact:Contact

These lines just comment to indicate that PimCol is a PimCollection object and must be commented out.
In your source file there were quite some errors in, I corrected those in a file editor.

Attached a modified version, it doesn't show any error when running on the desktop IDE and it compiles correctly.

Best regards.
 

hlo

Member
Licensed User
Thanks a bunch!

thanks a bunch Klaus! Really, helped.

I have been reviewing my process and I think I know when those illeagal characters might shown up.
I had originally split the program up into a couple modules. I didn't like the way it worked so I resently moved all the forms to the main module (using the move control in the form), copied all the code tomain than removed the module. That was just before I upgraded to v.6.8. when I looked at the soucre code with the editor the forms that were messed up were the forms that were moved. Since that was the only place where the corruption was, MIGHT, be what happened. maybe.
Anyway, thanks a bunch!:sign0098:
 
Top