Re: [MonoTouch] Monotouch activation with proxy

2011-08-24 Thread scheelings
Hi,

Thanks for your answers.
I will try Squid as a local proxy!

Thx,
Danny

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Monotouch-activation-with-proxy-tp3762881p3764557.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Web Services

2011-08-24 Thread Dean Harry
Hey Demis,

I took your advice and went the WCF path… seems a much better way to do things.

I still have a problem though…

I created a VERY simple service at 
http://hotdogs.infocore.com.au/hotdogs/Service1.svc, it works fine in VS 2010 
but doesn’t work in MT, I have just exhausted my limited knowledge on trying to 
figure it out, with no success…

I added it as a WCF web reference called hdService and then have the following:

hdService.ServiceClient client = new hdService.ServiceClient();
Console.Writeline(client.Greeting”Dean”));

But it doesn’t run, keeps stopping with “Object reference not set to an 
instance of an object” also referencing the System.ServiceModel.ChannelFactory, 
whatever that is ☺

I don’t know if it me, MT, the service or what…

I’ll leave the service running, can someone try and consume it and tell me if 
it works? Or tell me what I am missing / doing wrong?

Thanks!
Dean



From: Demis Bellot [mailto:demis.bel...@gmail.com]
Sent: Tuesday, 23 August 2011 12:03 AM
To: Dean Harry
Cc: monotouch@lists.ximian.com
Subject: Re: [MonoTouch] Web Services

Hey Dean,

Apart from the technical limitations, coupling your web services with your 
RDBMS is generally considered bad practice. (Although I'd also argue that due 
to its inefficiency, using SOAP in your resource constrained MonoTouch app 
should also be avoided).

Why don't you just go the normal route and wrap your DB logic inside a standard 
.asmx web service? though my preference would be to avoid SOAP entirely and 
just use one of the many REST service frameworks available in .NET.

If performance ever becomes a problem you can also try using my 
http://servicestack.net web service framework, where the JSON and JSV endpoints 
are multiple times more efficient than SOAP web services.

D.B
Sent from my iPad

On 22 Aug 2011, at 03:32, Dean Harry 
d...@callit.com.aumailto:d...@callit.com.au wrote:
Ok so I found my problem is a bug 
(https://bugzilla.novell.com/show_bug.cgi?id=670956)

So I changed the  SqlXml class of the Reference.cs file to read, as the poster 
mentioned at the bottom of the bug report:

   public partial class SqlXml {
[System.Xml.Serialization.XmlAnyElement(Namespace=Any)]
[System.Xml.Serialization.XmlAnyElement(Name=Any)]
[System.Xml.Serialization.XmlTextAttribute()]
public System.Xml.XmlNode Any;
}
But that still doesn’t work… has anyone been able to get this to work?  I’m 
getting desperate…

Cheers,
Dean



From: 
monotouch-boun...@lists.ximian.commailto:monotouch-boun...@lists.ximian.com 
[mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Dean Harry
Sent: Sunday, 21 August 2011 1:13 PM
To: monotouch@lists.ximian.commailto:monotouch@lists.ximian.com
Subject: [MonoTouch] Web Services

Hi All,

I am having a web service problem I can’t figure out…

I have a web service on my MSSQL server with a web method on it…

The following works fine in VS.NEThttp://VS.NET but doesn’t work in Mono, now 
I am using 2.8a but I wouldn’t have thought that anything would have changed in 
the web services side…

The code is:

GetMeets service = new GetMeets();
Service.Credentials = new NetworkCredentials(“username”,”password”);

It fails on the first line with:

“There was an error reflecting type ‘…..SqlXml’. Looking at the InnerException 
is shows “There was an error reflecting field ‘Any’…. The elemeny Any has been 
attributed with an XmlAnyElementAttribute and a namespace, but no name.

Has anyone come across this before?

Cheers,
Dean

___
MonoTouch mailing list
MonoTouch@lists.ximian.commailto:MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Xamarin Tech Support is Outstanding!

2011-08-24 Thread Lennie De Villiers
Yes if we can only deal with Xamarin and not Apple as well (Apple support
sucks)

On Wed, Aug 24, 2011 at 2:26 PM, kbudris ken.bud...@canfieldsci.com wrote:

 In the short time they've been in business, Xamarin has already blown me
 away
 with the quality of their technical support. I wish Apple were a tenth as
 responsive. Thanks, guys. Keep up the great work!

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Xamarin-Tech-Support-is-Outstanding-tp3765152p3765152.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] No preview when switching to UIImagePickerController via UITabBarController on iOS 5

2011-08-24 Thread Nic Wise
I trigger mine off a normal window (monotouch.dialog
dialogviewcontroller to be exact), tho there is a tab controller
further down the stack. Works fine.

On Wed, Aug 24, 2011 at 13:37, kbudris ken.bud...@canfieldsci.com wrote:
 Has anyone else tried using UIImagePickerController (camera) with
 UITabBarController on iOS 5? I submitted sample Objective-C code to Apple
 two weeks ago but still haven't heard anything. Am I really the only one
 running into this problem?

 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/No-preview-when-switching-to-UIImagePickerController-via-UITabBarController-on-iOS-5-tp3732760p3765181.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch




-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Monotouch activation with proxy

2011-08-24 Thread Jeff Stedfast
Another option is to set the HTTP_PROXY environment variable which Mono (and
thus MonoDevelop) will pick up and handle.

At some point in the future, this hack won't be necessary (I've already
implemented CFProxySupport bindings in MonoMac, but MonoDevelop needs to
link with it).

Jeff

On Wed, Aug 24, 2011 at 2:02 AM, scheelings d.scheeli...@smallweb.nlwrote:

 Hi,

 Thanks for your answers.
 I will try Squid as a local proxy!

 Thx,
 Danny

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Monotouch-activation-with-proxy-tp3762881p3764557.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Xml Linq bug

2011-08-24 Thread Jon Hopkins
Fortunately, it is just a debugger problem, and on the device it is
working.

 

Von: monotouch-boun...@lists.ximian.com
[mailto:monotouch-boun...@lists.ximian.com] Im Auftrag von Jon Hopkins
Gesendet: 24 August 2011 16:16
Cc: monotouch@lists.ximian.com
Betreff: [MonoTouch] Xml Linq bug

 

Hi,

 

I have a class that I use to store a recursive object that is populated
via Linq from Xml. The code is pretty

Simple and works in Visual Studio, but in MT, the sub-objects exist but
are garbage collected and NULL

When you inspect them.

 

using System;

using System.Xml.Linq;

using System.Collections.Generic;

using System.Linq;

 

public class pageObj

{

public string bgImage = ;

..

public ListpageObj subpages;

 

public pageObj() { }

 

public pageObj(XElement el)

{

if (el.Element(bgimage) != null)

bgImage = el.Element(bgimage).Value ?? ;

...

if (el.Element(subpages) != null)

{

var myref = subpages;  // try and keep a
ref

subpages = el.Element(subpages)

.Descendants(subpage)

   .Select(e = new pageObj(e))

   .ToList();

}

 

}

}

 

.

Initialised with

 

pages = xmlDoc

.XPathSelectElements(magazine/page)

.Select(e = new pageObj(e))

.ToList();

 

Thanks,

 

Jon

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Are there any known issues with WebClient and SSL?

2011-08-24 Thread Nic Wise
I'm still working out whats going on, but i'm getting this in the
debug log (in the simulator):

(NOTE: the code works. It's just _messy_ in the output logs)

[0xb0981000:] EXCEPTION handling:
System.Security.Cryptography.CryptographicException: Store Root
doesn't exists.

Threadpool worker tid=0x0xb0981000 this=0x0xb4555e8 thread handle
0x11d state : not waiting owns ()
  at System.Security.Cryptography.X509Certificates.X509Store.Open
(System.Security.Cryptography.X509Certificates.OpenFlags) [0x000ae] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Store.cs:224
  at System.Security.Cryptography.X509Certificates.X509Chain.get_LMRootStore
() [0x00018] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:280
  at System.Security.Cryptography.X509Certificates.X509Chain.get_Roots
() [0x00011] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:251
  at 
System.Security.Cryptography.X509Certificates.X509Chain.get_CertificateCollection
() [0x00021] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:336
  at System.Security.Cryptography.X509Certificates.X509Chain.FindParent
(System.Security.Cryptography.X509Certificates.X509Certificate2)
[0x0] in 
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:414
  at System.Security.Cryptography.X509Certificates.X509Chain.BuildChainFrom
(System.Security.Cryptography.X509Certificates.X509Certificate2)
[0x00011] in 
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:356
  at System.Security.Cryptography.X509Certificates.X509Chain.Build
(System.Security.Cryptography.X509Certificates.X509Certificate2)
[0x00017] in 
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:113
  at System.Net.ServicePointManager/ChainValidationHelper.ValidateChain
(Mono.Security.X509.X509CertificateCollection) [0x0009d] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/ServicePointManager.cs:467
  at Mono.Security.Protocol.Tls.SslClientStream.OnRemoteCertificateValidation2
(Mono.Security.X509.X509CertificateCollection) [0xd] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:423
  at Mono.Security.Protocol.Tls.SslStreamBase.RaiseRemoteCertificateValidation2
(Mono.Security.X509.X509CertificateCollection) [0x0] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslStreamBase.cs:210
  at 
Mono.Security.Protocol.Tls.SslClientStream.RaiseServerCertificateValidation2
(Mono.Security.X509.X509CertificateCollection) [0x0] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:446
  at 
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates
(Mono.Security.X509.X509CertificateCollection) [0x0001f] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:198
  at 
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1
() [0x00054] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:105
  at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process ()
[0x00037] in 
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake/HandshakeMessage.cs:105
  at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage
(Mono.Security.Protocol.Tls.TlsStream) [0x00039] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ClientRecordProtocol.cs:81
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback
(System.IAsyncResult) [0x00127] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:397
  at (wrapper runtime-invoke)
Module.runtime_invoke_void__this___object
(object,intptr,intptr,intptr) IL 0x00052, 0x
[0xb0981000:] EXCEPTION handling:
System.Security.Cryptography.CryptographicException: Store Root
doesn't exists.

 AND ---
[0xb087f000:] EXCEPTION handling: System.ArgumentNullException:
Argument cannot be null.
Parameter name: type

Threadpool worker tid=0x0xb087f000 this=0x0xb455738 thread handle
0x11a state : not waiting owns ()
  at System.Activator.CheckType (System.Type) [0x6] in
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Activator.cs:339
  at System.Activator.CreateInstance
(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
[0x0] in 

[MonoTouch] UIScreen.MainScreen.Bounds

2011-08-24 Thread johnHolmes
Hi all,

i'm facing a strange problem, developing landscape applications. It seems
that monotouch doesn't update UIScreen.MainScreen.Bounds width and height
values. I'm working with the device emulator.

OSX Lion
XCode 4.1.1
Monotouch eval 4.0.41
Mono 2.10.3.3

any hint?

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/UIScreen-MainScreen-Bounds-tp3725126p3725126.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] WebRequest exception

2011-08-24 Thread alicya
Hello!

I have an empty iPhone Window-based Project created with MonoDevelop.
In the generated code, in the FinishedLaunching method I try to connect to
the Twitter API using the following code:

string url = http://twitter.com/statuses/friends_timeline.xml;;
WebRequest request = WebRequest.Create(url);
request.Method = WebRequestMethods.Http.Get;
request.PreAuthenticate = true;
request.Credentials = new NetworkCredential(***, ***);
WebResponse response = request.GetResponse();

My username and password are correct Twitter credentials. I tried it out
using HttpWebRequest and HttpWebResponse, but I constantly get the following
error:

Unhandled Exception: System.Net.WebException: Error: ConnectFailure
(Connection refused) --- System.Net.Sockets.SocketException: Connection
refused
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP)
[0x00159] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1254
 
  at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request)
[0x001ba] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/WebConnection.cs:184
 


If I try to connect to any other url, for example: http://google.com,
specifying DefaultCredentials, or without using any credentials, I get the
same error too. 

Can you help me please?

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/WebRequest-exception-tp3726510p3726510.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Xcode 4 Interface Builder

2011-08-24 Thread Alex1993
Hey Guys, 

i updated my OS to Lion and installed Xcode 4. Xcode 3 is not working. Does
anyone of you can explain me how to work with the new Interface Builder. The
old one was not installed. And i dont know how to reference outlets in the
new interface Builder. 

i hope you can help me.

thanks.
 
lg Alex

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Xcode-4-Interface-Builder-tp3730678p3730678.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] WebRequest exception

2011-08-24 Thread alicya
Hello!

Thank you for the response. I tried it with HttpWebRequest and
HttpWebResponse, but I get the same error.

I further investigated the problem, and I found that when trying to execute
WebResponse response = request.GetResponse();, the response's
IsMutuallyAuthenticated method throws System.NotImplementedException. So I
think that this is the core of the problem.

Unhandled Exception: System.Net.WebException: The remote server returned an
error: (401) Unauthorized.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult
result) [0x002d9] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:1481
 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData
data) [0x00141] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:1306
 

Thanks in advance for any help!

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/WebRequest-exception-tp3726510p3732335.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] monotouch-fixes.dylib (Problem on when running from MonoDevelop)

2011-08-24 Thread jsonmez
Hi,

Just starting out on MonoTouch after working in Objective-C for some time.

Trying to create a universal app and I am running into a problem that is
stopping me cold:

dyld: could not load inserted library: /Users/sonmez56/Library/Application
Support/iPhone
Simulator/4.3.2/Applications/1FA9DB7A-34E8-40F1-B103-DA06F9BD7026/Peekaboo.app/monotouch-fixes.dylib

This is happening on a button click that I have created a delegate for.

If I run either debugger or just run as from MonoDevelop, when I click the
button app crashes with that error.

I immediately rerun the app, (just by clicking the icon in the simulator)
and everything is fine.

Really want to be able to debug, so I am hoping for a solution to this.

Let me know if I need to provide more info, will gladly do so.

Thanks,

John Sonmez
http://simpleprogrammer.com

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/monotouch-fixes-dylib-Problem-on-when-running-from-MonoDevelop-tp3743710p3743710.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] XIB'less development problems

2011-08-24 Thread mutablepro
All sorted, just needed to remove the the last of the refs from the build.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/XIB-less-development-problems-tp3746953p3747291.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] How to convert content items during build time?

2011-08-24 Thread Richy
hi all,

Is it possible to convert some content items during build time and inject
the converted files into the conten process and removing the non converted
ones. In visual studio we do that using an custom msbuild action, is there
something like that possible with monodevelop?

Thanks for your time,
Ricy

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-to-convert-content-items-during-build-time-tp3747970p3747970.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Crash on launch

2011-08-24 Thread makeout
I'll cross post my problem from another forum.
http://monogame.codeplex.com/discussions/269123

This might be more related to monotouch rather then monogame. And I can't
seem to understand what exactly is going wrong.

Basically, before my app even gets in the main, it crashes with the
following error.
Has anyone encountered this before? Really don't know what I can do to solve
this.
Thanks

dyld: could not load inserted library: /Users/makeout/Library/Application
Support/iPhone
Simulator/4.3.2/Applications/A53624FD-E7C4-4B3F-B87C-00283F059F2E/Paris.app/monotouch-fixes.dylib


=
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Crash-on-launch-tp3751120p3751120.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Trial Download Is Broken

2011-08-24 Thread crashed
Here is the Server Error Message:


Server Error in '/' Application
Could not find file
/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg.

Description: HTTP 500. Error processing request.

Stack Trace:

System.IO.FileNotFoundException: Could not find file
/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg.
File name:
'/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg'
  at System.IO.FileInfo.get_Length () [0x0] in filename unknown:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length ()
  at System.Web.HttpResponse.WriteFile (System.String filename, Boolean
readIntoMemory) [0x0] in filename unknown:0 
  at System.Web.HttpResponse.WriteFile (System.String filename) [0x0] in
filename unknown:0 
  at ASP.downloadtrial_aspx.OnLoad (System.EventArgs args) [0x0] in
filename unknown:0 
  at System.Web.UI.Control.LoadRecursive () [0x0] in filename
unknown:0 
  at System.Web.UI.Page.ProcessLoad () [0x0] in filename unknown:0 
  at System.Web.UI.Page.ProcessPostData () [0x0] in filename unknown:0 
  at System.Web.UI.Page.InternalProcessRequest () [0x0] in filename
unknown:0 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x0] in filename unknown:0 
Version information: Mono Runtime Version: 2.10.4 (mono_2_10/1b84abf Sun Aug
14 02:06:23 EDT 2011); ASP.NET Version: 2.0.50727.1433

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Trial-Download-Is-Broken-tp3751744p3751744.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Difference between iPad 1 and iPad 2 with WebClient

2011-08-24 Thread Gonzalo Paniagua
- Hide quoted text -
On Thu, Aug 18, 2011 at 3:51 PM, Miguel de Icaza mig...@xamarin.com wrote:
 Hello,

 I have this code running on both iPad 1 and 2's. On the iPad 1 the code
 hangs
 at random points getting files. On a 2 it works 100% of the time. Any
 thoughts would be appreciated.

 WebClient wc = new WebClient();
 Uri uri = new Uri(url);
 byte[] bytes = wc.DownloadData(uri);

 string path = Path.Combine(tmpPath, fileName);

 File.WriteAllBytes(path, bytes);
 wc.Dispose();

 We just fixed this problem.   Gonzalo (CCed on this line) might be able to
 provide a temporary workaround to use for this scenario.

When the problem occurs, kicking the threadpool by adding another
work item will make the problem go away.

Something like this (not tested or compiled ;-) should do:

Timer timer = new Timer (AddMe);
...
WebClient wc = new WebClient ();
Uri uri = new Uri(url);
timer.Change (0, 500); // Trigger it now and every 500ms
byte[] bytes = wc.DownloadData(uri);
timer.Change (Timeout.Infinite, Timeout.Infinite);

static void AddMe (object state)
{
 // Empty.
}



-Gonzalo
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] UI Questions

2011-08-24 Thread pierceboggan
Hi, I recently read Professional iPhone Programming with MonoTouch and
.NET/C#. For the most part I think it was a great book (especially for
reference), however, I still have many questions regarding the UI of
applications. I have followed many tutorials for monotouch.info, however, I
still can't seem to quite grasp it.

1. Can someone please explain to me the difference between a controller and
the actual item (a data view and a controller). What functionality does the
data view have on it's own and what is the purpose of the controller? To
push the view away when no longer needed?

2. Do the controllers come with a default class to build off of, or do we
have to program them manually? 

3. When creating a massive navigation scheme (ex. a tab bar with navigation
screens for each one), what do you have as the base class?

4. The book mentioned nothing of MySQL or anything like that (I don't want
to use a web-based service like SOAP or REST). How do I go about allowing
that functionality to store data?

Sorry. I'm like really lost when it comes to navigation and UI building.
This is frustrating to me because I believe I comprehend everything but the
UI part. Which sucks. 

If anyone could help me on Skype or send me in the right direction at least
that would be great. If someone can simply walk me through on video (I'm
more of a hands-on/visual learner), they would be my hero.

One last question, I'm a college student and I noticed there is a student
package. However, this does not feature distribution. $399 is VERY expensive
for a college student so I was wondering if there was a combination of the
two! 

Once again, I appreciate all the help! Thanks!

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/UI-Questions-tp3756621p3756621.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Simple PDF viewer using MonoTouch

2011-08-24 Thread shawnlehner
So I have done a bit of research on this topic and I have found a few
possible solutions. I wanted to find out if there was something out there
already that would save me time.

The UIWebView PDF rendering does 90% of what I want ... the only thing it is
lacking is the ability to click on hyperlinks. These links will be handled
by me in a special way.

Are there any solutions out there already that will be easily integrated
with MonoTouch.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Simple-PDF-viewer-using-MonoTouch-tp3760890p3760890.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Sharekit integration MonoTouch

2011-08-24 Thread kpijnenburg
Hi,

I'm used to work with ShareKit when building Obj-C iPhone apps. Has someone
worked on binding Sharekit with MonoTouch?
Or maybe a decent Twitter / Facebook binding?

Would be willing to bind ShareKit myself, but have too little experience
(yet) to build Sharekit into a static library .a.

Thanks in advance.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Sharekit-integration-MonoTouch-tp3762273p3762273.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Urgent, WCF call fails on 10th attempt SIGILL error

2011-08-24 Thread FrankHao
Xamarin resolved this issue in MonoTouch 4.1.0

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Urgent-WCF-call-fails-on-10th-attempt-SIGILL-error-tp3622923p3763530.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Need clarification regarding deployemnt of native application using professional ($399) Monotouch licensed for IOS system.

2011-08-24 Thread Xamarin Support



__
Please type your reply at the top of the email...

--

 

 



Joseph Hill | AUG 24, 2011 09:37AM EDT




Hello Jitendra
Thanks for your interest in Xamarin.

MonoTouch is licensed to a single owner for one developer.  We do not count 
applications, so you can deploy as many applications as you would like, 
including multiple applications to the same device.  If you purchase MonoTouch 
Professional, you can deploy directly to up to 100 devices using Ad-hoc 
deployment and you can deploy your applications to the app store.  If you 
purchase MonoTouch Enterprise, not only can you use ad-hoc deployment and app 
store deployment, you can also use Apple's In-House deployment model, which 
they offer to members of their Enterprise Developer program:
http://developer.apple.com/programs/ios/enterprise/

Hope that helps.  Please let us know if you have any additional questions.

Thank you
Joseph



--
Please, rate my reply:
http://nicereply.com/xamarin/2864367/1490





--




 





Jitendra | AUG 24, 2011 07:53AM EDT  | Original message 

  




Hi Support team,

Please give me brief details for below questions.

Question1 - Please give the details regarding total number applications, we can 
deploy as we buy professional ($399) Monotouch licensed for IOS system?

Question2 - Can we deploy multiple versions of same application into a physical 
device, does it consider each version number as one application or all versions 
are considered as one application?



Thanks  Regards,
Jitendra Kumar Pal
Programmer Analyst
Business Application Services,
Intelligroup.
an NTT Data Company
(M) +91 748 312 3328
[cid:image002.gif@01CC6282.7FC6FE80]














--

For your reference this is Case #: 1490

--


Support powered by Assistly (http://www.assistly.com/)

[[7aa7d0fe81071c90be519d5dd155e3d8691c-8514215]]
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Problem in first application

2011-08-24 Thread r2d2
I tried to build first application in MonoDev as IPhone Window-based project.
It was fine build and run. 
Then I opened MainWindow.xib in Interface Builder and saved it without any
changes. In MainWindow.desighner.cs type of _mt_window was changed
automaticaly from Monotouch.UIKit.UIWindow to object. And result  - errors
in compilation. 
Probably I should set some options in MonoDev...
Whats wrong ?

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Problem-in-first-application-tp3746789p3746789.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Problem in first application

2011-08-24 Thread r2d2
Answer to myself ) 
Decision of my problem - reinstall mono. 

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Problem-in-first-application-tp3746789p3758565.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Need clarification regarding deployemnt of native application using professional ($399) Monotouch

2011-08-24 Thread Nic Wise
1: any number. however, it's $399 PER developer. So if you have a team
of 5, you need 5 licenses. But those 5 people can make 100 or 1000
apps (or any number)

2: it's controlled by the identifier, which is usually
com.yourcompany.yourappname. So you can have 10 apps which are the
same, with a different identifier, and uit'll be on there 10 times.
The version is just for upgrades etc.

On Wed, Aug 24, 2011 at 12:56, jitendrap jitend...@intelligroup.com wrote:


 Please give me details for below questions.



 Question1 - Please give the details regarding total number applications, we
 can deploy as we buy professional ($399) Monotouch licensed for IOS system?



 Question2 - Can we deploy multiple versions of same application into a
 physical device, does it consider each version number as one application or
 all versions are considered as one application?



 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/Need-clarification-regarding-deployemnt-of-native-application-using-professional-399-Monotouch-tp3765103p3765103.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch




-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] WebRequest exception

2011-08-24 Thread Jeff Stedfast
Hi Alicya,

I've taken a look at the source code of HttpWebRequest and HttpWebResponse
and it looks like PreAuthentication for web requests is implemented, it's
just HttpWebResponse's IsMutuallyAuthenticated property that isn't.

That being said, could you submit a bug report to
http://bugzilla.xamarin.com (preferably with a simple test case)?

Thanks,

Jeff

On Wed, Aug 10, 2011 at 4:49 AM, alicya alicce...@yahoo.com wrote:

 I get the mentioned System.NotImplementedException in the WebResponse
 object's IsMutuallyAuthenticated method only when I try to reach sites that
 need authentication. So authentication might cause the problem.

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/WebRequest-exception-tp3726510p3732346.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Trial Download Is Broken

2011-08-24 Thread Jeff Stedfast
This appears to have been fixed.

Jeff

On Thu, Aug 18, 2011 at 12:13 AM, crashed crashed...@hotmail.com wrote:

 Here is the Server Error Message:


 Server Error in '/' Application
 Could not find file

 /home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg.

 Description: HTTP 500. Error processing request.

 Stack Trace:

 System.IO.FileNotFoundException: Could not find file

 /home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg.
 File name:

 '/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg'
  at System.IO.FileInfo.get_Length () [0x0] in filename unknown:0
  at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length ()
  at System.Web.HttpResponse.WriteFile (System.String filename, Boolean
 readIntoMemory) [0x0] in filename unknown:0
  at System.Web.HttpResponse.WriteFile (System.String filename) [0x0] in
 filename unknown:0
  at ASP.downloadtrial_aspx.OnLoad (System.EventArgs args) [0x0] in
 filename unknown:0
  at System.Web.UI.Control.LoadRecursive () [0x0] in filename
 unknown:0
  at System.Web.UI.Page.ProcessLoad () [0x0] in filename unknown:0
  at System.Web.UI.Page.ProcessPostData () [0x0] in filename unknown:0
  at System.Web.UI.Page.InternalProcessRequest () [0x0] in filename
 unknown:0
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
 [0x0] in filename unknown:0
 Version information: Mono Runtime Version: 2.10.4 (mono_2_10/1b84abf Sun
 Aug
 14 02:06:23 EDT 2011); ASP.NET Version: 2.0.50727.1433

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Trial-Download-Is-Broken-tp3751744p3751744.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Web Services

2011-08-24 Thread Demis Bellot
Hi Dean,

From last report it looks like Mono team will only be supporting and 
implementing the Silverlight Subset of WCF so you'll have to wait till you 
hear back from them to figure out if what you're trying to do falls within that 
subset.

Although I'm the maintainer of WCF replacement web services stack called 
http://www.servicestack.net which I currently support on Mono and now recently 
on MonoTouch. Since it's open source and I'm able to control the entire source 
code, it's much easier for me to support and add functionality.

It's both an RPC/SOAP and REST convention-based web services framework that is 
configuration-free so is easy to setup. If you're interested I have a 
preconfigured MonoTouch client application that uses it available here:

https://github.com/ServiceStack/ServiceStack.Examples/tree/master/src/MonoTouch/RestFilesClient

The project includes all the dependencies you need and has examples of both 
sync and async clients (both with 1 LOC):

//calling sync web service
var response = gateway.GetFilesResponse(txtPath.Text);

//calling async web service
gateway.GetAsyncFilesResponse(txtPath.Text, 
r = InvokeOnMainThread(() = txtResults.Text = r.Dump()), 
null);

There's no code-gen as the same DTO classes you use to define your web services 
on the server can be used as-is in your client application to provide a 
strongly-typed client with an easy and friction-free development workflow.
As a bonus it uses my fast Json Serializer which the latest benchmarks places 
it a multitude of times faster than any serializer shipping with .NET.

If you don't mind binary protocols, protobuf-net remains the fastest serializer 
for .NET and also includes an RPC-based framework. Having spoken with the 
author, one of his goals was to support MonoTouch although I'm not sure what 
the current status on MonoTouch is at the moment.

Anyway if you decide to try servicetack.net feel free to post any 
questions/issues you have to the group:
https://groups.google.com/forum/#!forum/servicestack

Cheers,
Demis


On 24 Aug 2011, at 08:10, Dean Harry wrote:

 Hey Demis,
  
 I took your advice and went the WCF path… seems a much better way to do 
 things.
  
 I still have a problem though…
  
 I created a VERY simple service at 
 http://hotdogs.infocore.com.au/hotdogs/Service1.svc, it works fine in VS 2010 
 but doesn’t work in MT, I have just exhausted my limited knowledge on trying 
 to figure it out, with no success…
  
 I added it as a WCF web reference called hdService and then have the 
 following:
  
 hdService.ServiceClient client = new hdService.ServiceClient();
 Console.Writeline(client.Greeting”Dean”));
  
 But it doesn’t run, keeps stopping with “Object reference not set to an 
 instance of an object” also referencing the 
 System.ServiceModel.ChannelFactory, whatever that is J
  
 I don’t know if it me, MT, the service or what…
  
 I’ll leave the service running, can someone try and consume it and tell me if 
 it works? Or tell me what I am missing / doing wrong?
  
 Thanks!
 Dean
  
  
  
 From: Demis Bellot [mailto:demis.bel...@gmail.com] 
 Sent: Tuesday, 23 August 2011 12:03 AM
 To: Dean Harry
 Cc: monotouch@lists.ximian.com
 Subject: Re: [MonoTouch] Web Services
  
 Hey Dean,
  
 Apart from the technical limitations, coupling your web services with your 
 RDBMS is generally considered bad practice. (Although I'd also argue that due 
 to its inefficiency, using SOAP in your resource constrained MonoTouch app 
 should also be avoided).
  
 Why don't you just go the normal route and wrap your DB logic inside a 
 standard .asmx web service? though my preference would be to avoid SOAP 
 entirely and just use one of the many REST service frameworks available in 
 .NET.
  
 If performance ever becomes a problem you can also try using my 
 http://servicestack.net web service framework, where the JSON and JSV 
 endpoints are multiple times more efficient than SOAP web services.
 
 D.B
 Sent from my iPad
 
 On 22 Aug 2011, at 03:32, Dean Harry d...@callit.com.au wrote:
 
 Ok so I found my problem is a bug 
 (https://bugzilla.novell.com/show_bug.cgi?id=670956)
  
 So I changed the  SqlXml class of the Reference.cs file to read, as the 
 poster mentioned at the bottom of the bug report:
  
public partial class SqlXml {
 [System.Xml.Serialization.XmlAnyElement(Namespace=Any)]
 [System.Xml.Serialization.XmlAnyElement(Name=Any)]
 [System.Xml.Serialization.XmlTextAttribute()]
 public System.Xml.XmlNode Any;
 }
 But that still doesn’t work… has anyone been able to get this to work?  I’m 
 getting desperate…
  
 Cheers,
 Dean
  
  
  
 From: monotouch-boun...@lists.ximian.com 
 [mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Dean Harry
 Sent: Sunday, 21 August 2011 1:13 PM
 To: monotouch@lists.ximian.com
 Subject: [MonoTouch] Web Services
  
 Hi All,
  
 I am having a web service problem I can’t figure out…
  
 I have a web service on my MSSQL 

Re: [MonoTouch] Trial Download Is Broken

2011-08-24 Thread Nic Wise
I think the mail list software had a spaz. gmail tells me the email
you replied to is 6 days old...

On Wed, Aug 24, 2011 at 21:45, Jeff Stedfast j...@xamarin.com wrote:
 This appears to have been fixed.
 Jeff

 On Thu, Aug 18, 2011 at 12:13 AM, crashed crashed...@hotmail.com wrote:

 Here is the Server Error Message:


 Server Error in '/' Application
 Could not find file

 /home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg.

 Description: HTTP 500. Error processing request.

 Stack Trace:

 System.IO.FileNotFoundException: Could not find file

 /home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg.
 File name:

 '/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg'
  at System.IO.FileInfo.get_Length () [0x0] in filename unknown:0
  at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length ()
  at System.Web.HttpResponse.WriteFile (System.String filename, Boolean
 readIntoMemory) [0x0] in filename unknown:0
  at System.Web.HttpResponse.WriteFile (System.String filename) [0x0]
 in
 filename unknown:0
  at ASP.downloadtrial_aspx.OnLoad (System.EventArgs args) [0x0] in
 filename unknown:0
  at System.Web.UI.Control.LoadRecursive () [0x0] in filename
 unknown:0
  at System.Web.UI.Page.ProcessLoad () [0x0] in filename unknown:0
  at System.Web.UI.Page.ProcessPostData () [0x0] in filename
 unknown:0
  at System.Web.UI.Page.InternalProcessRequest () [0x0] in filename
 unknown:0
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
 [0x0] in filename unknown:0
 Version information: Mono Runtime Version: 2.10.4 (mono_2_10/1b84abf Sun
 Aug
 14 02:06:23 EDT 2011); ASP.NET Version: 2.0.50727.1433

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Trial-Download-Is-Broken-tp3751744p3751744.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch


 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch





-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] App crashes in Add-hoc build

2011-08-24 Thread Chris van Wyk
Hi guys,

I've got an app which is running fine on a 3GS and fine on a iPhone 4 debug
and release builds, but as soon as I do an add-hoc build it crashes on the
iPhone 4 after displaying the Default.png.

I know the above is not a lot to go on, but how/where do I start debugging
the add-hoc build? Any other pointers also greatly appreciated.

Thanks
Chris 


___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] monotouch-fixes.dylib (Problem on when running from MonoDevelop)

2011-08-24 Thread Sebastien Pouliot
Hello John,

We will need more information. The message about
monotouch-fixes.dylib is not the source of your crash. This is a fix
for something else (OpenGL signals wrt simulator IIRC). GDB will
complain about it but you'll only see that if your application crash
(elsewhere).

Please fill a bug report and include the full stack trace of your
crash. Note that we'll likely need a test case to reproduce the issue.

Regards,
Sebastien

On Sun, Aug 14, 2011 at 9:30 PM, jsonmez john.son...@gmail.com wrote:
 Hi,

 Just starting out on MonoTouch after working in Objective-C for some time.

 Trying to create a universal app and I am running into a problem that is
 stopping me cold:

 dyld: could not load inserted library: /Users/sonmez56/Library/Application
 Support/iPhone
 Simulator/4.3.2/Applications/1FA9DB7A-34E8-40F1-B103-DA06F9BD7026/Peekaboo.app/monotouch-fixes.dylib

 This is happening on a button click that I have created a delegate for.

 If I run either debugger or just run as from MonoDevelop, when I click the
 button app crashes with that error.

 I immediately rerun the app, (just by clicking the icon in the simulator)
 and everything is fine.

 Really want to be able to debug, so I am hoping for a solution to this.

 Let me know if I need to provide more info, will gladly do so.

 Thanks,

 John Sonmez
 http://simpleprogrammer.com

 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/monotouch-fixes-dylib-Problem-on-when-running-from-MonoDevelop-tp3743710p3743710.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Crash on launch

2011-08-24 Thread Jeff Stedfast
(I'm going to steal Sebastien's response from another similar post)

We will need more information. The message about
monotouch-fixes.dylib is not the source of your crash. This is a fix
for something else (OpenGL signals wrt simulator IIRC). GDB will
complain about it but you'll only see that if your application crash
(elsewhere).

Please fill a bug report and include the full stack trace of your
crash. Note that we'll likely need a test case to reproduce the issue.

Thanks,

Jeff

On Wed, Aug 17, 2011 at 4:26 PM, makeout jfma...@gmail.com wrote:

 I'll cross post my problem from another forum.
 http://monogame.codeplex.com/discussions/269123

 This might be more related to monotouch rather then monogame. And I can't
 seem to understand what exactly is going wrong.

 Basically, before my app even gets in the main, it crashes with the
 following error.
 Has anyone encountered this before? Really don't know what I can do to
 solve
 this.
 Thanks

 dyld: could not load inserted library: /Users/makeout/Library/Application
 Support/iPhone

 Simulator/4.3.2/Applications/A53624FD-E7C4-4B3F-B87C-00283F059F2E/Paris.app/monotouch-fixes.dylib


 =
 Got a SIGSEGV while executing native code. This usually indicates
 a fatal error in the mono runtime or one of the native libraries
 used by your application.
 =

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Crash-on-launch-tp3751120p3751120.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Where is GL_UNPACK_ROW_LENGTH

2011-08-24 Thread Jeff Stedfast
Hi Mark,

I just checked and sadly it looks like these enums aren't available under
the current MonoTouch releases.

The enum value for UnpackRowLength should be (int) 0x0CF2 if that helps. If
that works for you, let me know and I'll pull that and any other enum values
you need into OpenTK.Graphics.ES11 and ES20 for an upcoming release.

Jeff

On Fri, Aug 19, 2011 at 7:08 AM, Oaf m...@markripley.com wrote:

 Hi,

 First post here, been using Monotouch for six weeks or so now, porting some
 Java/OpenGL games to iOS.

 I must admit the Monotouch implementation of OpenGL is certainly
 frustrating. I spend most of my time trying to find where constants are
 buried, what they've been renamed as, and how mono's OGL apis translate to
 'normal' OGL.

 The PixelStore consts seem to be mostly missing from mono though, and I'm
 stumped as to where they're hiding.

 Anyone have any clues?

 Many thanks :)

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Where-is-GL-UNPACK-ROW-LENGTH-tp3754895p3754895.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Difference between iPad 1 and iPad 2 with WebClient

2011-08-24 Thread ric3kg
Nope - this does not work under load on an iPad 1.

Thanks,
Rick

On Aug 24, 2011, at 12:38 PM, Gonzalo Paniagua [via MonoTouch] wrote:

 - Hide quoted text - 
 On Thu, Aug 18, 2011 at 3:51 PM, Miguel de Icaza [hidden email] wrote:
 
  Hello, 
  
  I have this code running on both iPad 1 and 2's. On the iPad 1 the code 
  hangs 
  at random points getting files. On a 2 it works 100% of the time. Any 
  thoughts would be appreciated. 
  
  WebClient wc = new WebClient(); 
  Uri uri = new Uri(url); 
  byte[] bytes = wc.DownloadData(uri); 
  
  string path = Path.Combine(tmpPath, fileName); 
  
  File.WriteAllBytes(path, bytes); 
  wc.Dispose(); 
  
  We just fixed this problem.   Gonzalo (CCed on this line) might be able to 
  provide a temporary workaround to use for this scenario.
 
 When the problem occurs, kicking the threadpool by adding another 
 work item will make the problem go away. 
 
 Something like this (not tested or compiled ;-) should do: 
  
 Timer timer = new Timer (AddMe); 
 ... 
 WebClient wc = new WebClient (); 
 Uri uri = new Uri(url); 
 timer.Change (0, 500); // Trigger it now and every 500ms 
 byte[] bytes = wc.DownloadData(uri); 
 timer.Change (Timeout.Infinite, Timeout.Infinite); 
  
 static void AddMe (object state) 
 { 
  // Empty. 
 } 
  
 
 
 -Gonzalo 
 ___ 
 MonoTouch mailing list 
 [hidden email] 
 http://lists.ximian.com/mailman/listinfo/monotouch
 
 
 If you reply to this email, your message will be added to the discussion 
 below:
 http://monotouch.2284126.n4.nabble.com/Difference-between-iPad-1-and-iPad-2-with-WebClient-tp3750957p3766401.html
 To unsubscribe from Difference between iPad 1 and iPad 2 with WebClient, 
 click here.



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Difference-between-iPad-1-and-iPad-2-with-WebClient-tp3750957p3766744.html
Sent from the MonoTouch mailing list archive at Nabble.com.___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] App crashes in Add-hoc build

2011-08-24 Thread Chris van Wyk
Please ignore this query. I found the problem.

I need to Remember to include additional mtouch arguments when specifying a
new build type.

Thanks
Chris

From:  Chris van Wyk ch...@jib.co.za
Date:  Wed, 24 Aug 2011 23:02:23 +0200
To:  monotouch@lists.ximian.com
Subject:  [MonoTouch] App crashes in Add-hoc build

Hi guys,

I've got an app which is running fine on a 3GS and fine on a iPhone 4 debug
and release builds, but as soon as I do an add-hoc build it crashes on the
iPhone 4 after displaying the Default.png.

I know the above is not a lot to go on, but how/where do I start debugging
the add-hoc build? Any other pointers also greatly appreciated.

Thanks
Chris 
___ MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Interface builder on Lion

2011-08-24 Thread Jeff Stedfast
Hi Mg,

On Sat, Aug 6, 2011 at 3:28 PM, Mg mgre...@cinci.rr.com wrote:

 Hi,

 I'm new to MonoTouch (and pretty much everything Mac).

 I have a Macbook Pro with Lion and I've installed Xcode 4.11 from the app
 store, Mono 2.10.3, MonoDevelop 2.4, and MonoTouch 4.0.4.1.

 I've read that I should probably install Xcode 3 in order to use Interface
 Builder. I did this after everything else was installed...although I wasn't
 sure where to put it so I created an Xcode3 folder under applications. I
 now
 have a bunch of icons showing up in Launchpad that probably ought not to be
 there, but that isn't the real problem. I cannot find interface builder on
 the list of applications in order to set xib files to open with it. What's
 wrong?


Assuming you installed Xcode3 to /Applications/Xcode3...

Look under /Applications/Xcode3/Applications and you should see an Interface
Builder.app

Hope that helps,

Jeff
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Audio streaming between iOS and Windows

2011-08-24 Thread Jeff Stedfast
I looks like I might have been wrong... supposedly UDP *is* supported in
MonoTouch.

Jeff

On Wed, Aug 24, 2011 at 6:11 PM, Jeff Stedfast j...@xamarin.com wrote:

 Hi,

 Currently UDP is not supported on MonoTouch but TCP is. I'm not sure if
 there's any reason we can't add UDP support, so feel free to submit a
 feature request on http://bugzilla.xamarin.com (I'm sure others will want
 UDP too).

 Hope that helps answer your question,

 Jeff


 On Thu, Aug 18, 2011 at 5:29 AM, pkd2010 pkd2...@hotmail.com wrote:

 Hi

 I want to make an app for myself and for training, I am confused in some
 matters, the two important ones are Audio Streaming between Windows and
 iOS
 (iOS streams the Windows audio) and Picture(Screen Capture) streaming (iOS
 should display the windows screen).

 In screen streaming between two Windows, i capture a jpeg image from
 screen
 and convert it to byte[] and send it using TCP (but, the better way for
 speed is UDP). but in MonoTouch i do not know whether it is possible or
 not,
 if possible (i think it's possible), how?

 Regards,
 PK DEVELOPER

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Audio-streaming-between-iOS-and-Windows-tp3752160p3752160.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch



___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] CGPDFDictionary.GetArray error

2011-08-24 Thread shawnlehner
Thanks! It appears I am running 4.0.5 at the moment.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/CGPDFDictionary-GetArray-error-tp3763287p3766804.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Linking problem target iphone

2011-08-24 Thread Sebastien Pouliot
Oops, I had already answered but forgot the c.c. the list. Here was my
answer (since it could help other people too).

 Hello Chuck,

 Are you linking in the simulator builds ?

 By default simulator builds do not use the linker (so the builds are
 faster). The device builds defaults are to Link SDK assemblies to
 make your app smaller (and also faster to build since AOing can be
 slow). My guess is that you're missing a reference and that does not
 show until the linker is involved (only in the device builds). You can
 try disabling the linker on your device build to confirm this.

 If you're linking your simulator builds (and they work) then try to
 compare your project settings (like defines) between your
 Debug|Simulator and Debug|iPhone (or Release|*).

Sebastien

On Wed, Aug 24, 2011 at 6:05 PM, Jeff Stedfast j...@xamarin.com wrote:
 Hi Chuck,
 Did you ever figure this out? If not, I've added Sebastien to the Cc since
 he's probably the best person to be able to answer this.
 Jeff

 On Wed, Aug 17, 2011 at 8:42 AM, chuck ch...@more-projects.de wrote:

 Linking an app for the real iphone gives an error where there is no error
 linking for the simulator, any hints where to look?

 Chuck


 *Compiling to native code
 /Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev
 /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app
 -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.Monotouch.dll
 -r=/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.ZLib.Monotouch.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.InternetPack.Monotouch.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/SBB-dlls/SecureBlackbox.XMLSecurity.dll
 -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll
 -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll
 -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.Charsets.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.PGP.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.XML.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MPWebCommon_iPhone02/MPWebCommon_iPhone/bin/Debug/MPWebCommon_iPhone.dll

 -r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MyContractModelsLib_iPhone02/MyContractModelsLib_iPhone/bin/Debug/MyContractModelsLib_iPhone.dll
 -debug -linksdkonly -sdk=4.3 -v -v -v
 /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe
 Framework is:
 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
 Copied
 /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe
 to

 /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app/MyContract24.exe
 Linking SDK only for assembly
 /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe into
 /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app
 Could not link assemblies: Mono.Linker.ResolutionException: Can not
 resolve
 reference: System.Boolean

 SBRDN.__Global::NonstrictCompareRDNAsStrings(SBRDN.TElRelativeDistinguishedName,SBRDN.TElRelativeDistinguishedName)
  at Mono.Linker.Steps.MarkStep.ResolveMethodDefinition
 (Mono.Cecil.MethodReference method) [0x0] in filename unknown:0
  at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference
 reference) [0x0] in filename unknown:0
  at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction
 instruction) [0x0] in filename unknown:0
  at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody
 body) [0x0] in filename unknown:0
  at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition
 method) [0x0] in filename unknown:0
  at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x0] in filename
 unknown:0
  at Mono.Linker.Steps.MarkStep.Process () [0x0] in filename
 unknown:0
  at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context)
 [0x0] in filename unknown:0
  at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context)
 [0x0]
 in filename unknown:0
  at MonoTouch.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline,
 Mono.Linker.LinkContext context) [0x0] in filename unknown:0 *

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Linking-problem-target-iphone-tp3749838p3749838.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch


___

[MonoTouch] Setting Font in CGBitmapContext.SelectFont using variable

2011-08-24 Thread ric3kg
I'm trying to write a general purpose routine that will set the font using a
variable instead of the literal font name.

CGBitmapContext.SelectFont(fontName, fontSize, CGTextEncoding.MacRoman);
instead of:

CGBitmapContext.SelectFont(Arial, fontSize, CGTextEncoding.MacRoman);
But it seems not to work. Any suggestions would be much appreciated.

Thanks, Rick

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Setting-Font-in-CGBitmapContext-SelectFont-using-variable-tp3766928p3766928.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Xcode 4 Interface Builder

2011-08-24 Thread Jeff Stedfast
Hi Alex,

You could try reading over
http://xamarin.com/pdf/Transitioning_from_Xcode_3_to_Xcode_4_in_Monotouch.pdf

Hope that helps,

Jeff

On Tue, Aug 9, 2011 at 1:46 PM, Alex1993 rummel.alexan...@googlemail.comwrote:

 Hey Guys,

 i updated my OS to Lion and installed Xcode 4. Xcode 3 is not working. Does
 anyone of you can explain me how to work with the new Interface Builder.
 The
 old one was not installed. And i dont know how to reference outlets in the
 new interface Builder.

 i hope you can help me.

 thanks.

 lg Alex

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Xcode-4-Interface-Builder-tp3730678p3730678.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Several UI Questions

2011-08-24 Thread Jeff Stedfast
Hi Pierce,

On Mon, Aug 22, 2011 at 4:30 PM, pierceboggan piercebogga...@gmail.comwrote:

 Hi, I am very new to MonoTouch and recently read the book Professional
 iPhone
 Programming with MonoTouch and .NET/C#. However, I have had some trouble
 understanding exactly how the UI as a whole works (I'm also new to mobile
 development).

 If someone could Skype/communicate via email with me, that would be great.
 Otherwise, I have listed most of my questions below.

 1. Can a view be functional without a controller?
 2. If you were to have a tab and navigation controller interacting with
 each
 other, would you place this on a ViewController and use that to push views
 or control what's happening? Or would you need a controller for each
 individual thing?
 3. The book mentioned several web-based services for storing data. However,
 if I wanted to store it in a MySQL database, would I just need to import
 some ADO.NET classes in order to gain this functionality?


You could import the SQLite binding (or the fully managed SQLite
implementation). You probably wouldn't want to import all of ADO.NET.



 From more of a product question: Does the student version of MonoTouch
 feature deployment as well? Because $399 is VERY expensive for a college
 student who wants to start development.


If you are a student, you should definitely send an email off to
supp...@xamarin.com and inquire about a student license as I'm fairly sure
we have a cheaper solution for students ;-)
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch