RE: Cobol .Net Exception Handling
Try the following: Catch myex as type Exception set str to "Source " & myex::Source set str = str & "Number " & myex::StackTrace set str = str...
View ArticleRE: Cobol .Net Exception Handling
Sorry Chris, I should have been a little more explicit. This is in visual studio for starters. I am using the Stringbuilder class where I am referencing the var str so that part works fine. When I...
View ArticleRE: Cobol .Net Exception Handling
Never mind, I figured it out. It is truly the exception "object reference not set..." I am testing my Try Catch statement with several different exception types. In this particular case, my...
View ArticleRE: Visual COBOL for eclipse
Edit: I've tried redownloading, the file and I've tried upgrading Eclipse. Both didn't work.
View ArticleRE: Cobol .Net Exception Handling
How are you doing your database connection?I would think that you should be able to trap the MySqlException if you are connecting directly using the MySqlConnection class but it probably would not...
View ArticleRE: Cobol .Net Exception Handling
I have the connection string info in the app.config file. Here is the connection code. If you have any suggestions, please let me know. I come from a C#/VB .net background and I am teaching myself...
View ArticleRE: Cobol .Net Exception Handling
Sorry, correction. My question is why doesn't it fall through to the Catch statement when the exception type is MySqlException.
View ArticleRE: Cobol .Net Exception Handling
I don't have MySQL readily available but I tested this same thing with the SQL Server SqlClient provider and the exception handling works for me. If I pass an invalid connection string it jumps to the...
View ArticleRE: Cobol .Net Exception Handling
That does work indeed. I am finding that however when you set your connection string in the app.config file the catch exception is "object not set to an instance..." even for type SQLException. Or...
View ArticleRE: Cobol .Net Exception Handling
I found a solution. It seems that when you store the connection string in the app.config file, the MySqlException class does not work as expected. However, if you store the connection string in the...
View ArticleVisual COBOL for eclipse
I'm running Windows 10. I've downloaded a student trial version of Visual COBOL for Eclipse -> vce_23.exe I run the .exe and it loads Eclipse Luna JAVA EE - but doesn't offer me a new COBOL project...
View ArticleRE: Debugging
Ok, I think I can move new one to other folder.Please but I have problems with new run unit call. I must pass parameters via CBL_ALLOC_MEM, CBL_PUT_SHMEM_PTR and CBL_GET_SHMEM_PTRIn caller program I...
View ArticleRE: Personal Edition Wont Authenticate
Hi chuffman17,Could you provide more details on how or when this is failing? When authenticating the software, make sure you use the same email address as when you requested it.Regards,Raquel
View ArticlePersonal Edition Wont Authenticate
As the title says. The personal version sent my student email a 1 year trial for Visual COBOL. Myself and 0 of my friends can get it to authenticate.
View ArticleRE: Debugging
When you are setting the address of a data item that data item must reside in the linkage section not the working-storage section. You are basically establishing addressability to these data items.So...
View Article.Net Cobol
Is the local-storage section a "best practice" place to define all of your method variables? For example:method-id Encrypt. local-storage section. 01 clearBytes binary-char unsigned...
View ArticleRE: Cobol .Net Exception Handling
The app.config version works fine for me with SQL Server. If the connection string is OK, it connects and all is good. If the connection string is formatted correctly but contains an invalid Data...
View ArticleRE: .Net Cobol
Yes, local-storage is where you define your variables that are local to the scope of the method. It is not required to use the local-storage section header in a method as that is the default.You can...
View ArticleRE: Personal Edition Wont Authenticate
Please don't offer something as stupid as me inputting the wrong email. The error says it's an authentication server error and wrong product. Spent an hour with support and basically it's a huge bug...
View Article