Click here to Skip to main content
15,893,508 members

Comments by cigwork (Top 26 by date)

cigwork 30-Jun-19 16:27pm View    
> If sm.CheckKey(frmActivation.PasswordDecrypt(tActivationKey, tEncryptionKey))

On the basis of the fragment shown on any run after FirstRun frmActivation will be null (nothing) when the line above is executed. Given this I'd expect a null reference exception to be thrown. That plus the prehistoric on error goto handling is likely to give interesting results.

If the code is genuinely going from the attempt to open the activation dialog on first ever run to connection open then that suggests the activation form is being closed without any user interaction, so an error condition in frmActivation, perhaps an exception being swallowed, resulting in the form closing before it has a chance to display anything.
cigwork 25-Nov-16 4:09am View    
As Griff says there's not a lot to go on, but this looks a bit like a WebService/WCF request failing because the data to be returned is too large to be serialized in the maximum allowed size of string.

If that is what's going on then the interface needs to redesigned so that repeated calls can be made to allow the data to be retrieved in chunks. So instead if one method in your service, say GetAllData(), you have a couple; GetDataHeader() which returns stats on the data (such as a set of key IDs) and a GetDataChunk() method which (perhaps) works through the key IDs returned by the header call getting each chunk.

It's a failure that's bitten me in the past. Part of the problem, especially where the data is serialized as XML, is that although the raw data being sent is significantly less than string maxlen the repeated field names, including those for zero length string fields, in the XML (or even JSON) string push it over the limit.
cigwork 17-Nov-16 14:15pm View    
Doesn't satisfy your "built in to EF" requirement, but I hacked this, link below, together a few years ago because I too like to have the columns in a DB described. Might get you out of a hole in the short term.

http://www.codeproject.com/Articles/331960/YADDU-Yet-Another-MS-SQL-Database-Documentation-Ut
cigwork 10-Jun-16 15:23pm View    
Well just spent a day or so trying Android Studio 2 and have uninstalled it. Can't run the HAXM emulator on my machine (fair enough it's a Celeron box), but, worse, the armabi emulator(s) won't run either and 17 minutes for gradely to build "hello world" is just taking the mickey.

Until I replace this machine will have to plod on with Eclipse/ADT even though I won't be able to target newer APIs. At least the Eclipse/ADT emulator works and building a "real" application only takes a few tens of seconds at most.

I'm pretty cheesed off, but at least this isn't work related.
cigwork 8-Mar-16 13:51pm View    
So the JSON string couldn't be parsed. Try googling JSON and "invalid token" and see what sort of problems give that exception. Then go back to the code and see what's wrong with the input string.

Suggest that you create a console project and just play around with hard coded JSON strings and converting them to .Net classes until you're comfortable with the tech. Then go back and try it in your main project.