DCSIMG
C# - Asaf Shelly

Browse by Tags

Launching 64bit process from 32bit process using CreateProcess in C# .Net
Sunday, May 20, 2012 4:54 PM
I was required to execute a Java applet from within a C# application. It kept failing until I found out that it needed 3GB of RAM and the process was 32 bit by default. I then set the .Net process to build specifically as 64 bit. Now I needed to use a 32 bit dll, so I had to use a 32 bit process. The solution is to use the explicit path c:\Windows\Sysnative,... Read More...
by AsafShelly | with no comments
תגים:,
פיתוח אלגוריתמים
Sunday, March 11, 2012 11:14 AM
בפוסט קודם דיברתי על מתכנתי אמבדד ו פיתוח דרייברים . בסוף הפוסט הזכרתי אלגוריתמיקה כהיתרון התחרותי וההגנה הטובה ביותר מפני העתקה. אם יש לך אלגוריתם ייחודי לא צריך פטנט. הרי בכל מקרה פטנט צריך לרשום בהרבה מקומות בעולם, ויש מדינות חשובות שלא ממש יתיחסו אליו (מזרח). בנוסף חברה שאין לה משאבים אינסופיים כנראה לא תצליח להתמודד בבתי משפט מול חברות ענק על מנת להגן על... Read More...
המרחק בין מתכנת למתכנת אמבדד
Wednesday, February 29, 2012 11:05 AM
קודם כל חשוב לומר שאין קשר לסביבת הפיתוח, לתשתיות, לאוסף הכלים וה- API. שום קשר. בעולם מיקרוסופט יש לנו מספר מערכות הפעלה שונות שעליהן מפתחים, לרוב בעזרת Visual Studio: 1. Win32 API, User-Mode, C\++, C#, MFC, Java, וכד' 2. שרתים, Asp.Net, HPC, וכד' 3. Windows CE 4. Windows NT Kernel 5. WebBrowser, JavaScript, AJAX, וכד' למי ששואל את עצמו, הגרסאות... Read More...
סדרת הרצאות מצולמות בנושא מחשוב מקבילי בחסות אינטל
Thursday, February 23, 2012 10:56 PM
מדובר בשישה פרקים באורכים משתנים, כולם באנגלית, שצולמו לפני מספר חודשים וישוחררו לצפיה כל מספר שבועות. הסדרה מתחילה בבסיס של מחשוב מקבילי ומסבירה למה מחשוב מקבילי ממש קל, וממשיכה דרך ארכיטקטורה ומודלים, ועד טכנולוגיות מתקדמות דוגמת AVX (יכולת DSP של X86). הוידאו הראשון יפורסם בימים הקרובים באתר של אינטל העולמית. למידע נוסף: http://software.intel.com/en-us/blogs... Read More...
השב"כ מחפש מומחה ארכיטקטורת פיתוח
Friday, September 23, 2011 5:27 AM
השב"כ מחפש מומחה ארכיטקטורת פיתוח וזה נשמע לי תפקיד מפתה ויוקרתי מאד. אני מפרסם את זה בין השאר כי לא נפתחות הרבה משרות לארכיטקטים. קישור למודעה: https://www.shabak.gov.il/jobs/alljobs/computres/Pages/129.aspx אפשר לשלוח קו"ח גם אל: it. shabak@gmail.com בהצלחה, אסף Read More...
by AsafShelly | with no comments
תגים:, , ,
C# Library Version
Tuesday, May 24, 2011 8:19 PM
Colleting this from different sources. Looking for a library version similar to __DATE__ __TIME__ you need to use: System . Reflection . Assembly . GetExecutingAssembly (). GetName (). Version . ToString () For this to change every build you need to go to project properties, 'Application' tab, open 'Assembly Information', and set the last value... Read More...
by AsafShelly | with no comments
תגים:,
C# Convert Generic Type
Sunday, April 03, 2011 2:09 PM
I am posting this because I didn't see a simple solution on the first few hits when searching the net. If you have a generic class of type T and you want to use it with basic types such as int, long, etc. You can use the following method to do the casting: class myClass<T> { private int myVal; public T Get() { return ((T)(Convert.ChangeType(myVal, typeof... Read More...
by AsafShelly | with no comments
תגים:,
My Conclusions on Parallel Computing
Sunday, April 11, 2010 10:33 AM
After practicing parallel computing for a long while I have decided that it is time to summerise things as I see them so far. See the post in the link below: My Conclusions on Parallel Computing Asaf Read More...
Exception by target of an invocation
Thursday, April 01, 2010 6:38 PM
Parallel Programming means that we use invocations more often than we did before. Visual Studio 2008 debugger will bring you to the correct line if you get an exception, but if you invoke a method within your own code the debugger will show you the location in your own thread, which means the line that invoked the code that eventually threw an exception. The... Read More...
C# Activate Previous Application Instance
Tuesday, March 09, 2010 5:50 PM
Continuing the following post and as an answer to Jasper: http://blogs.microsoft.co.il/blogs/asafshelly/archive/2010/03/02/c-close-previous-application-instance.aspx The following code will make sure that only one instance is running by exiting if an instance is already running, and activating that instance. [ DllImport ( "user32.dll" )] static extern... Read More...
by AsafShelly | 2 comment(s)
תגים:,