logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

attackingrahu
#1 Posted : Friday, January 21, 2011 1:39:35 PM(UTC)
attackingrahu

Rank: Newbie

Groups: Registered
Joined: 1/21/2011(UTC)
Posts: 0

Hi
When we try to run IGRID components in an dotnet application on linux platform it throws an exception.
Could you detail out how to run IGRID components in linux with mono framework
Igor/10Tec
#2 Posted : Friday, January 21, 2011 1:48:33 PM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 63

Was thanked: 8 time(s) in 8 post(s)
We can guarantee that iGrid.NET will work properly only on the Windows platform. Even if the whole code were 100% managed, in theory it would be possible to port it to Linux, but in fact there are many things which should not work there. These are Windows native visual effects for drop-down lists, messages sent by Windows when the control should be redrawn, etc. The .NET Windows Forms package is a wrapper for all this stuff, but inside it is the same "native" Windows. No wonder that it fails in Linux.

iGrid.NET could work properly in mono/Linux for sure only if it were a "calculating" component, i.e. a component that performs some calculations and/or data manipulations without the visible window part.
pwsmietan
#3 Posted : Friday, January 28, 2011 6:39:25 PM(UTC)
pwsmietan

Rank: Newbie

Groups: Registered
Joined: 1/20/2011(UTC)
Posts: 0
Location: California

Glad you documented this problem - this is something we're considering doing as well. Can your team run a debug session on MONO and see why it's not working? I'm sure this will prove helpful for your marketing of iGrid.

thanks!

-Paul
Igor/10Tec
#4 Posted : Monday, January 31, 2011 8:33:22 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 63

Was thanked: 8 time(s) in 8 post(s)
Paul, sorry, but we explained that we do not see any perspective for iGrid.NET in Linux/mono because of the technical reasons of compatibility, and this is not our target development platform, so we will not do any tests.

Only MS Windows for Windows Forms.NET controls :)
max.weller
#5 Posted : Friday, February 10, 2012 4:45:02 PM(UTC)
max.weller

Rank: Newbie

Groups: Registered
Joined: 2/10/2012(UTC)
Posts: 0

Hi, I've got the .NET iGrid to work on Debian Linux using Wine. (took me some long hours!)

It uses some hacks, because by default there are Win32Exceptions telling you that RegisterClass failed ("Windows class name not valid"). So I just put try-catch-blocks around the fHookSettingChangeWindow.CreateHandle(myParams); commands which cause this exception.

iGrid.cs:Initialize(), around line 2960
Code:

      try {
        fHookSettingChangeWindow.CreateHandle(myParams);
      } catch (Exception ex) {
        System.Console.WriteLine("[IGRID] [!!!] CreateHandle FAILED for iGrid.fHookSettingChangeWindow");
        System.Console.WriteLine(ex.ToString());
      }


This is part of three classes. If you do this, iGrid seems to work with Wine (content can be set programatically).

I haven't figured out yet if there are any drawbacks, because I don't know what this HookSettingChangeWindow is good for. Can anybody shed some light on possible problems caused by my work-around?

Yours, Max Weller
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.6 RC1 | YAF © 2003-2012, Yet Another Forum.NET
This page was generated in 0.451 seconds.