On Linux, use Valgrind or Clang and its address and/or memory sanitizers to 
figure out where your memory problems are.

For Clang, make CXX=clang++, and add CXXFLAGS += fsanitize=address (or 
-fsanitize=memory)

On Windows, see the following: 
http://blogs.msdn.com/b/visualstudioalm/archive/2014/04/02/diagnosing-memory-issues-with-the-new-memory-usage-tool-in-visual-studio.aspx.

Once you fix them on one platform, it should fix them for all platforms.

Jeff

On Tuesday, June 16, 2015 at 7:26:51 AM UTC-4, Ilya Bizyaev wrote:
>
>
> <https://lh3.googleusercontent.com/-pTS4gN6nDaM/VYAFM4Jym7I/AAAAAAAAAxk/WKNC_NDEGrg/s1600/rl2ExxJCltw.jpg>Hello
>  
> everyone!
> I have already asked this question a couple of month ago, but I still have 
> not found a solution. This time I am going to summarise the issues I have 
> found.
> I am experiencing some problems with my application 
> <https://github.com/IlyaBizyaev/Entangle> on Windows. It is compiled 
> successfully on *any* platforms I have tried. It works fine on Linux 
> (Ubuntu and Debian), but crashes on Windows. And what is even more 
> interesting is that its problems differ across different Windows versions:
>
>    - Windows XP; slow PC in my school. My applications launches 
>    immediately after being clicked. I have not checked if it crashes or not.
>    - Windows 7 Ultimate on my home PC where I compile the application. 
>    The computer is fast enough (2.5 GHz, 4 GB RAM), but the application takes 
>    10 seconds (!) to launch and crashes with an assert when I try to encrypt 
> a 
>    file: 
>    
> An advice by Jeffrey Walton did not help:
>
>> What platform are you working on?
>
>
>>  I've seen similar, but its been a few years. I think I saw it on early 
>> iOS SDKs.
>
>
>> As a quick hack, open config.h and add the following:
>
>
>>     #undef CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS
>
>
>> Add it around line 345, just after its been set.
>
>
> Some more information on this crash (another topic) 
> <https://groups.google.com/d/msg/cryptopp-users/r26q9efjIlk/kehApnySOMkJ>.
>
>
>    - Windows 8.1; my friend's ASUS tablet. The application crashes when 
>    attempting to encrypt a file. In his case, no assert is displayed. Windows 
>    "searches for a way to solve the problem" and simply closes the 
> application 
>    ("Application stopped working").
>    - Finally,* there is a Windows PC where Entangle does not crash! *That 
>    is a PC with Windows 7 Home Basic installed on it. Everything is 
>    encrypted and decrypted properly.
>
> How do I solve this annoying problem? *I truly need your help!*
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to