Re: [Debug ok, Release no] Help with electron native module

2017-04-21 Thread Πάνος Κουτσοβασίλης
Ok so, i read how to properly report a BUG report and in my effort to 
package a reproducible example with the symptom i faced, i did notice that 
my module vcxproj file had a weird compiler option 

false


After removing it everything works just fine with both release and debug 
version of cryptopp. The proper way to set this through the node-gyp and 
have a proper binding.gyp file is by having this 

['OS=="win"', {
  "msvs_settings": {
"VCCLCompilerTool": {
  "AdditionalOptions": ["/GR"]
}
  }
}]


I know that it may not interest you about electron native modules but i 
think it would be a really time saver for someone that might face the same 
issue and it would be nice if he could found that info somewhere.

Thank you for the immediate support, and once again thanks for this really 
nice library

Cheers

Τη Παρασκευή, 21 Απριλίου 2017 - 5:24:40 μ.μ. UTC+3, ο χρήστης Jeffrey 
Walton έγραψε:
>
>
>
>> I have pinpoint that the code that causes this problem is 
>>
>> StringSource ss1(server_response, true, new StreamTransformationFilter(d, 
>> new StringSink(recovered)));
>>
>>
>> Which is the cbc aes decryption code. If i comment out the above code 
>> then the release version works as well.
>>
>
> What is the problem?
>
> Also see https://www.cryptopp.com/wiki/Bug_Report .
>
> Jeff
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Debug ok, Release no] Help with electron native module

2017-04-21 Thread Jeffrey Walton


>
> I have pinpoint that the code that causes this problem is 
>
> StringSource ss1(server_response, true, new StreamTransformationFilter(d, new 
> StringSink(recovered)));
>
>
> Which is the cbc aes decryption code. If i comment out the above code then 
> the release version works as well.
>

What is the problem?

Also see https://www.cryptopp.com/wiki/Bug_Report .

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Debug ok, Release no] Help with electron native module

2017-04-21 Thread Jeffrey Walton


On Friday, April 21, 2017 at 4:37:05 AM UTC-4, Πάνος Κουτσοβασίλης wrote:
>
> Hello and really KUDOS  for this nice library
>
>
> I try to include cryptopp in my native electron (node js) module and i 
> observed something weird. When i use the debug version of the library the 
> following code works but when i build against the release version i get an 
> "Electron has stopped working error". I attach the vcxproj of the module 
> and my code. I really cant tell what is the matter and i would really like 
> your help. If your require more info, i would gladly provide them :)
>
>
> Addon vcxproj, vcxproj.filters, binding.sln
>
> (build.zip)
>
>
> Command to issue the compilation of cryptlib.lib
> "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" cryptlib.vcxproj 
> /p:configuration="Release" /p:platform="Win32"
>
> Partial Code (Ommited for bravety, i can upload the whole addon.cpp file 
> if you need it)
> (code.zip)
>

Please post the details of the problem.

Jeff 

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.