Woes with SharpDevelop

taximania

Well-Known Member
Licensed User
Longtime User
I've altered some code in my notification.dll

It compiles, but when I copy it to my device and try to add it as a component, it fails with

An error occured File or assembly system.windows.forms version=2.0.0.0. bla bla bla or one of it's dependencies was not found.

My old compiled .dll still works on my device. Why doesn't the new one.

Attached is my .cs file (renamed .txt)
 

Attachments

  • notification.txt
    10.7 KB · Views: 283

taximania

Well-Known Member
Licensed User
Longtime User
I uninstalled sharpdevelop3 from my laptop.
Reinstalled sharpdevelop2,
compiled it for CompactFramework2

So now it's working, and my new events fire :sign0060:

Cheers Agraham, not sure how you helped,
but your quick response made me think something
was up with what I was compiling for.
 

taximania

Well-Known Member
Licensed User
Longtime User
More woes :)

Thanks for the link AG, I'll stick with Version2 :)

Can anybody else help me further ??
I hate relying on AGraham :eek:

Attached is notification2.txt, my .cs file.
I've added a few mods and it compiles and works on my device.
Yet again I'm struggling to thin it out for a desktop.dll

I can get my 'attempts' to compile on the desktop for the device,
but the .exe's crash in 'app start' on the device.
 

Attachments

  • notification2.txt
    11.2 KB · Views: 260

derez

Expert
Licensed User
Longtime User
I can try to run it on my device, can you please upload the test b4p application ?
I made a desktop version by deleting some methods, but I get an error after putting it in the application :
Unable to load one or more of the requested types. Retrieve the LoaderException Property for more information
I found it in the help :
ReflectionTypeLoadException.LoaderExceptions Property
but I don't know how to use it, sorry.

Can you upload your desktop version ? maybe my deletions went too far...
 
Last edited:

taximania

Well-Known Member
Licensed User
Longtime User
Hi Derez, just had another hour tinkering, still no sucess.

The attached zip contains,
Both compiled dll's.
(As I said earlier, the device one works on the device.
And the .sbp compiles for device on the desktop,
but the .exe crashes on the device.)

The .sbp file i'm using.
And both .cs files
 

taximania

Well-Known Member
Licensed User
Longtime User
The error seems to be in the Balloon Class.

I've compiled the .sbp on the desktop several times with an errorLabel(label1) in
various parts of the .sbp app_start.
The
B4X:
label1: 
msgbox("Here")
fires if I place errorLabel(label1) before bal.new1
Msgbox doesn't show if I place errorLabel(label1) 'after' bal.new1
It just crashes with Error in app_start :BangHead:
 
Top