Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > General > Chit Chat
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.

Woes with SharpDevelop

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2010, 10:58 AM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default Woes with SharpDevelop

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)
Attached Files
File Type: txt notification.txt (10.7 KB, 8 views)
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #2 (permalink)  
Old 07-24-2010, 11:03 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I suspect that you may have compiled it for the desktop.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #3 (permalink)  
Old 07-24-2010, 11:31 AM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I uninstalled sharpdevelop3 from my laptop.
Reinstalled sharpdevelop2,
compiled it for CompactFramework2

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

Cheers Agraham, not sure how you helped,
but your quick response made me think something
was up with what I was compiling for.
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #4 (permalink)  
Old 07-24-2010, 03:50 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

See SharpDevelop 3.x support for Compact framework - SharpDevelop Community for some info.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #5 (permalink)  
Old 07-25-2010, 06:53 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default More woes :-)

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

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

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.
Attached Files
File Type: txt notification2.txt (11.2 KB, 5 views)
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #6 (permalink)  
Old 07-26-2010, 12:54 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

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 :
Quote:
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...
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 07-26-2010 at 01:24 PM.
Reply With Quote
  #7 (permalink)  
Old 07-26-2010, 05:15 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #8 (permalink)  
Old 07-26-2010, 06:31 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
Code:
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
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #9 (permalink)  
Old 07-26-2010, 06:38 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Where is the zip file ?
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #10 (permalink)  
Old 07-27-2010, 04:03 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

On my desktop

I'm sure I added it
Attached Files
File Type: zip notification2.zip (14.8 KB, 2 views)
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aaaaarrrrggghhhhh :-) Serial woes taximania Questions (Windows Mobile) 7 12-16-2008 08:38 PM
Configuring SharpDevelop to see the .NET 1.1 and .NET CF 1.0 framework Louis Chit Chat 1 09-16-2007 01:27 PM
Hardware Library Woes - Revisited @Work Questions (Windows Mobile) 3 05-09-2007 04:48 AM


All times are GMT. The time now is 09:21 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0