Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Open Source Projects
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.


Basic4ppc Wine Project


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-22-2009, 08:34 PM
Knows the basics
 
Join Date: Jan 2009
Posts: 50
Awards Showcase
Beta Tester 
Total Awards: 1
Default Basic4ppc Wine Project

I really want to get Basic4ppc running in linux, currently with .net installed basic4ppc runs but fails to load/show your source. After debugging, the problem seems to be with ole32.dll (while loading the text box.)

The library file ole32.dll, is required by windows and is used when performing OLE (Object Linking and Embedding) operations . OLE allows objects created in one application to be embedded in documents/objects created by a different applications e.g. embedding an Excel spreadsheet inside a Word document.

Here is the output:
Code:
joel@joel-laptop:~$ env WINEPREFIX="/home/joel/.wine" wine "C:\Program Files\Anywhere Software\Basic4ppc Desktop\Basic4ppc Desktop.exe"
err:ole:CoGetContextToken apartment not initialised
fixme:shell:URL_ParseUrl failed to parse L"System.Windows.Forms"
fixme:shell:URL_ParseUrl failed to parse L"System"
fixme:shell:URL_ParseUrl failed to parse L"System.Drawing"
fixme:shell:URL_ParseUrl failed to parse L"ActiproSoftware.SyntaxEditor.Net20"
fixme:shell:URL_ParseUrl failed to parse L"ActiproSoftware.WinUICore.Net20"
fixme:shell:URL_ParseUrl failed to parse L"ActiproSoftware.Shared.Net20"
fixme:win:EnumDisplayDevicesW ((null),0,0x32d114,0x00000000), stub!
fixme:shell:URL_ParseUrl failed to parse L"Dbasic.resources"
fixme:shell:URL_ParseUrl failed to parse L"Dbasic.resources"
fixme:shell:URL_ParseUrl failed to parse L"System.Deployment"
fixme:shell:URL_ParseUrl failed to parse L"System.Xml"
fixme:shell:URL_ParseUrl failed to parse L"System.Design"
fixme:imm:ImmReleaseContext ((nil), 0x1b4890): stub
fixme:shell:URL_ParseUrl failed to parse L"ActiproSoftware.WinUICore.Net20.resources"
fixme:shell:URL_ParseUrl failed to parse L"ActiproSoftware.WinUICore.Net20.resources"

The output gives an error with CoGetContextToken which is associated with ole32.dll


Replacing the dll with the windows system dll causes wine to crash, so i'm now at a loss for what to do next.
Reply With Quote
  #2 (permalink)  
Old 09-29-2009, 04:28 AM
Knows the basics
 
Join Date: Jan 2009
Posts: 50
Awards Showcase
Beta Tester 
Total Awards: 1
Default

More research reveals Basic4ppc calls the following resources on start up:

actiprosoftware.shared.net20
actiprosoftware.syntaxeditor.net20
lcsharpcode.sharpziplib
mscorelib
system
system.data
system.drawing
system.window.forms
system.xml

Something is wrong with parsing. I dont think wine is calling the dll's to load at the proper times to invoke basic4ppc's methods.
Reply With Quote
  #3 (permalink)  
Old 09-29-2009, 08:52 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,839
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I know little to nothing about wine but as all those are managed assemblies I would expect their loading to be controlled by the .NET CLR and not by the OS.

I suspect the key is this "err: ole:CoGetContextToken apartment not initialised" which looks like a COM failure. It would seem that whichever wine version you are using cannot properly host the CLR. Are you using mono?

It may not help but someone at post #5 here WineHQ Forums View topic - Burraconline not start! has experienced the same error.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #4 (permalink)  
Old 09-30-2009, 01:06 PM
Knows the basics
 
Join Date: Jan 2009
Posts: 50
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I have .net installed up to version 3.0 under wine, and yes i have tried mono.
Mono is only a replacement for the .net assemblies though, and lacks system dlls. Under mono GDI does not even load. I did see the link you posted before when researching, but since then .Net compatibilty has increased and newer versions of wine have been released. Since other forms are loading, i wonder if it may be a font issue. Like i said before the entire program loads minus the main form where you edit the code. I have gone as far as decompiling B4ppc to try and further understand what is broken under wine, but i don't really understand what i'm looking at. I can only recognize resources that are being called.

You may be correct about basic4ppc not calling any system files directly, but the dll's basic4ppc access may access system information sometimes from what i understand. However things may be getting called... debugging shows they are, so i don't know how else that may be argued. (by system i mean several dll's in the system32 folder of windows)

Right now i'm trying to figure out if the problem lies within the dll's themselves or the linux kernel.

Thanks for the help Agraham,

Joel


Edit: For got to mention COM. From the website- "OLE32, OLEAUT32, RPCRT4 - COM and DCOM are implemented here."
Found out Ole32 is a dll that is not replacable, you have to patch the wine dll provided.

Last edited by joel2009 : 09-30-2009 at 01:27 PM.
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic4ppc with wine on Linux ? agolan Chit Chat 5 09-14-2009 11:18 AM
Wine cellar manager klaus Share Your Creations 9 03-18-2009 03:35 PM
Help needed converting a VB6 Project Drewpeu Questions & Help Needed 11 10-15-2008 06:13 PM
Have a look to the project and please correct me. mozaharul Questions & Help Needed 2 10-13-2008 03:02 AM
Battery Saver project Cableguy Questions & Help Needed 1 07-12-2007 07:02 PM


All times are GMT. The time now is 11:48 PM.


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