problem about out-Collection of common programming errors
Matthew Grima
c# vb.net parameters out
I’ve got a project in c# which is making use of another project written in vb.net. I am currently able to modify both.I’ve got a method in the VB project like:Public Sub MethodName(ByVal param1 As String, ByRef param2 As String)param2 = param1 + 1End SubI am not able to call this method using the out keyword from C#:public void CallOtherMethod(){string param1 =”test”;string param2;provider.AddTransaction(param1, out param2);}Shouldn’t the ByRef keyword in VB.Net have the capabilities of both “re
Klaus Byskov Pedersen
wpf zoom out
WPF: What is the best way to implement Zoom In and Zoom Out option for an Image inside ScrollViewer in WPF at runtime and also other alternative methods for the samePlease provide sample code and suggest links where I can find sample code and more info about various ways to Zoom the image.Regards, Anwar
amrk7
garbage-collection heap leak dump out
Trying to detect memory leak in a webapp.Taken heap dump of the app at the time of crash. using eclipse MAT to parse the dump.The collated info from the parsing leads to these 2 conclusions – Objects occupying more memory dont have GC roots. Essentially whenever GC happens, they get cleaned up. Objects under GC roots occupy significantly less memory. So these may not be the root cause of the memory leak(?).So does this mean there is no leak happening? and the crash happens because of out of mem
MarkZar
java exception system out
I am new to java, and to make clear of “System.out”, i read relevant java source code, then find something i cannot understand. First the source code of “System.out”:public final static PrintStream out = nullPrintStream(); then i went to nullPrintStreamprivate static PrintStream nullPrintStream() throws NullPointerException { if (currentTimeMillis() > 0) { return null; } throw new NullPointerException(); } My question is: the program may throw a NullPointerException in the function nullPrintS
DMCS
facebook connect out
I get this error in my apps.Fatal error: Uncaught CurlException: 28: connect() timed out! thrownin /usr/local/www/myappsdomain.com/facebookapp/base_facebook.php online 853How can I fix this? Can anyone help? Thanks.
quangtruong1985
jquery loops break out .each
I have some html element like these: <table id=”myTable”></table><select name=”mySelect”><option value=”1″>1</option><option value=”2″>2</option><option value=”3″>3</option></select><a href=”javascript:void(0)” onclick=”addToTable()”>Add new</a><script>addToTable = function() {var selected = $(“select[name*=’mySelect’] option:selected”).val();$(‘#myTable’).find(‘tr’).each(function() {if ($(this).attr(‘id’)==selected) {
Wonka
jquery header comments out
Is it possible to use jQuery to disable/comment out a header file and then later re-enable it, sort of toggle it on/off disable/enable it?
AnorZaken
c# generics out restrictions
The problem is this: I want a generic function that has an out-parameter of the generic type. Restrict the generic type to ref-type and there is no problem ofcourse. But I wanted a totally unrestricted generic type! No new() or class/struct-restrictions!public class A { }public class B<T> : A {public T t;public B(T i){this.t = t;} }public static class S {public static bool Test<T>(ref A a, out T t){C<T> c = a as C<T>;if(c != null){t = c.t;return true;}elsereturn false;} }
Web site is in building