-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In the same spirit of other platforms, it seemed logical to follow up with this question: What are common non-obvious mistakes in Java? Things that seem like they ought to work, but don't.
I won't give guidelines as to how to structure answers, or what's "too easy" to be considered a gotcha, since…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
After developing ASP.NET apps exclusively for several years I'm about to start developing Winforms apps. What are the gotchas that I should be looking out for with this changes? For instance the way object lifetime is managed in the winforms paradigm. I'm sure there must be plenty of gotchas…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've used Process.Start to shell out and call 7zip to archive stuff
I've also used it to call ffmpeg to compress video files.
That was a while ago..but I rememeber there was some issue about the pcocess stalling if you don't read off the standardoutput/error. I don't remember everything about it…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have this piece of code (summarized)...
AnsiString working(AnsiString format,...)
{
va_list argptr;
AnsiString buff;
va_start(argptr, format);
buff.vprintf(format.c_str(), argptr);
va_end(argptr);
return buff;
}
And, on the basis that pass by reference is preferred where…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Looking at some old application code which uses explicit driver loading as
Class.forName(...).newInstance
I have been told to change this to use the Java 1.4.2 mechanism to establish a database connection using ContextLookup, and DataSource.
Are there any gotchas I should be aware of?
>>> More