Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

Tal Rashas Guardianship

@Tal Rashas Guardianship
About
Posts
34
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Memory Leak
    T Tal Rashas Guardianship

    Hi there, I've got a trouble of memory leak. I use Process Explorer to watch my app's status, and find that the "virtual size" keep increasing, and get to 2GB eventually, but the app never crashed. I use windbg to check the app's memory status, the memory committed and memory reserved are also good(130MB),in my understanding, the "virtual size" is composed of the memory committed and reserved,but the fact is not. Please tell me how to calculate "virtual size", Thanks very much!

    C / C++ / MFC performance tutorial

  • How does the "src" tag in javascript work?
    T Tal Rashas Guardianship

    In JScript1.js, I defined a function like this: ================================================= var count = 0; function changeDefaultStatus() { var arr = new Array("haoyong", "hao123", "12wangzhi", "123", "state"); if (count >= 5) count = 0; top.defaultStatus = arr[count]; count++; } ================================================= And use the function like this: ================================================= //the code below does not work <script> setInterval("changeDefaultStatus();", 2000); ....... //But if I move the code to here, it works setInterval("changeDefaultStatus();", 2000); ==================================================== when a page is being loaded, how does the "src" works? the explorer will wait for "JScript1.js"'s loading, or just load it in the background. Thank you

    Web Development javascript data-structures tools question

  • GDI+ cause the application freeze
    T Tal Rashas Guardianship

    Hi there. The reason is clear. It's because that I called the GDI+ APIs in another thread, and GDI+ doesn't support multi-thread calling

    C / C++ / MFC graphics winforms help

  • GDI+ cause the application freeze
    T Tal Rashas Guardianship

    I see, thanks for your mention

    C / C++ / MFC graphics winforms help

  • GDI+ cause the application freeze
    T Tal Rashas Guardianship

    No,I didn't set breakpoint, I just create a CRect object with large paramaters: CRect rect(0, 0, 200000, 200000); //Disable this line //GetClientRect(&rect);

    C / C++ / MFC graphics winforms help

  • GDI+ cause the application freeze
    T Tal Rashas Guardianship

    I have tried to test the parameters which were sent to FillRectangle function, I found that when they are big numbers(i.e, 200,000), the calling to FillRectangle will freeze. But from my code, the value of CRect is got from API GetClientRect, does this function have some possibility to fail?

    C / C++ / MFC graphics winforms help

  • 救命!!!!!! [modified]
    T Tal Rashas Guardianship

    I am not familiar with this issue, but as a chinese, I'm glad to help you. Do you need some translation?

    C / C++ / MFC graphics

  • GDI+ cause the application freeze
    T Tal Rashas Guardianship

    I have got a trouble of GDI+, my code is like this: CPaintDC dc(this); // device context for painting CRect rect; GetClientRect(&rect); CDC dcMem; dcMem.CreateCompatibleDC(&dc); CBitmap bitmap; bitmap.CreateCompatibleBitmap(&dc, rect.Width(), rect.Height()); dcMem.SelectObject(&bitmap); Graphics graphics(dcMem.m_hDC); SolidBrush brushBKGnd(Color(0,0,0)); //freeze at here graphics.FillRectangle(&brushBKGnd, Rect(rect.left, rect.top, rect.Width(), rect.Height())); The code will freeze at the last line, I don't know why, please help me.

    C / C++ / MFC graphics winforms help

  • Is there anyway to make SEH works when stask is broken
    T Tal Rashas Guardianship

    I think the workflow is, firstly I catch an exception, and then jump to where to handle this exception. I wonder how to catch such an exception when the stack was broken.

    C / C++ / MFC data-structures question

  • Is there anyway to make SEH works when stask is broken
    T Tal Rashas Guardianship

    Yes I think so. But I don't want to recover from the error in this case, I just want to record some useful information when an exception happened. Such as error thread ID

    C / C++ / MFC data-structures question

  • Is there anyway to make SEH works when stask is broken
    T Tal Rashas Guardianship

    Thanks

    C / C++ / MFC data-structures question

  • Is there anyway to make SEH works when stask is broken
    T Tal Rashas Guardianship

    SEH is exactly a good solution for exception handling, but it depends on the stack to call the user-defined exeception handler function, that means, when exception occurs, the OS catch the exception immediately, and it will call the user-defined callback to give the control to the application. If the trouble which caused the exception makes the stack broken, the calling to the user-defined callback may not success, in this situation, the application will not be notified that an exception occurred. Is there anyway to catch the exception in all the cases? whether stack is OK or NG, the mechanism should work. Thanks.

    C / C++ / MFC data-structures question

  • Who can show me the process and method of Scrum?
    T Tal Rashas Guardianship

    it's really a bad news, can you provide any information for me from your opinion?

    Design and Architecture business help question

  • Who can show me the process and method of Scrum?
    T Tal Rashas Guardianship

    I'd like to know the process and method of Scrum, who can help me, to provide me some documents or resouces or some kind of the introductions...Thanks.

    Design and Architecture business help question

  • C# or C++/CLI?
    T Tal Rashas Guardianship

    Yes, the WPF attacked me, I want to use it to the GUI. thanks for your advice

    C# csharp question c++ performance

  • C# or C++/CLI?
    T Tal Rashas Guardianship

    My project is written by C++, now I want to change it to .NET platform, I have two choices, C# or C++/CLI, choose C# means rewrite all of the code, choose C++/CLI means part rewrite, and it's flexible But I'm warry about three points: 1.The grammar of C++/CLI is surprising, what is the C++/CLI like? C++? C#? a new language? 2.The flexibility of C++/CLI is interesting, but may not good to the project leader, if the programmer write some pure c++ code and cause some abnormal memory accessing, it's hard to find them out. Who can guarantee that his programmers are all good enough? 3.After change to C++/CLI, the workload of refactoring may not lower than rewriting So, it seems that I should use C#? Who can give me some ideas? Thanks in advance

    C# csharp question c++ performance

  • Is there anyone use C++/CLI in the real project?
    T Tal Rashas Guardianship

    Thanks for your reply. I cared about if C++/CLI can be used in a large C++ project, are there any troubles may happen?

    Managed C++/CLI csharp c++ css dotnet architecture

  • Is there anyone use C++/CLI in the real project?
    T Tal Rashas Guardianship

    I have a project written in C++,and I want to use the .NET framework as the architecture in the next version. Rewrite all the code in C# is impossible, so I give my attention to C++/CLI. I have less understanding about this tech, I only know these points about it: 1.The original C++ code can be compiled in the C++/CLI compiler 2.I can use all of the C++ function in the new platform 3.I can use all of the .NET framework function in my C++ code 4.For deploy issue, I will only need to install the .NET framework will my application, then everything could be OK Are there any other things need to be noticed?

    Managed C++/CLI csharp c++ css dotnet architecture

  • what is better directX or openGL ??
    T Tal Rashas Guardianship

    Thank you for your wonderful analysis, I will choose to learn DX first

    Graphics graphics game-dev question csharp design

  • How can I fetch resources from Uncharted Waters 4?
    T Tal Rashas Guardianship

    OK, thanks for your mention

    Graphics question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups