![]() ![]() Thank you all for pointing me to the direction of the error. With this fix I am happy to report no fails for this weeks data. So now the program is crashing with a probability of 0.0000001% instead of 10%. But, the Mask must accept two kinds of mask, like, the default mask is like this (00) 0000-0000, but sometimes the mask need to have one more slot, like this (00) 0000-00000. Please remember to click 'Mark as Answer' the responses that resolved your issue, and to click 'Unmark as Answer' if not. The symbols not loaded prevent you from looking into the dll to see the variable and other names in the disassembly at the address of the crash. That has nothing to do with the symbols not loaded. Could be a bug in that dll or caused by Undefined Behavior in your code. The thinking was that, as the events seem to be statistically independent, the loop will reduce the chance of it failing from 0.1 to 0.1^n with n the number of loops. Heres the problem: Im using a MaskedTextBox for phones masks. The exception is an Access Violation in the jagpdf-1.4.dll dll. I put a limit of 10 times it can run the loop before terminating it. I sort of solved the problem by wrapping the function around a loop using try and catch where if the first time it fails then the exception is caught and the function is tried again until it passes. How can I solve this problem?ĮDIT: I put a screenshot of the error I'm getting, it is very dificult to reproduce because the program runs normally about 90% of the time, so I have to press build several times until it crashes.ĮDIT 2: Since it seems the bug is from the library, (I already send them a message reporting it but doubt they'll do something about it because last release was years ago). Then open the maskedTextBox.cs to Change the base class to the. ![]() The Properties window looks like Figure 2. You can open Properties window by pressing F4 or right click on a control and select Properties menu item. The easiest way to set properties is from the Properties Window. Click Windows control library template on the templates. After you place a MaskedTextBox control on a Form, the next step is to set properties. When a MaskedTextBox is added to a form, it exists as a completely functional text box which includes a basic text input area and can be further customized with a mask. Select a new C project by clicking New from the File menu. MaskedTextBox is an advanced textbox control which automatically validates the input entered by a user. If I run the executable directly, 90% it creates the PDF correctly and 10% of the time created a corrupted pdf that I cannot open. Creating Control: Start the Visual Studio.NET Windows Forms designer. ![]() If i am opening the program from visual studio (same input, same parameters) it runs to the end without errors 90% of the time, but sometimes it throws an exception telling me that symbols not loaded for jagpdf-1.4.dll I have a very simple program to generate a PDF using JAGPDF. I couldn't find a solution to this problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |